CsrConfiguration config = mock(CsrConfiguration.class);
-
@Test
void createEncodedCsr_shouldSucceedWhenAllFieldsAreSetCorrectly() throws KeyPairGenerationException, CsrGenerationException {
when(config.getState()).thenReturn("California");
assertThat(new CsrFactory(config).createCsrInPem(keyPair)).isNotEmpty();
- }
+ }
}