assertEquals(certValue, options.getCertValue());
}
@Test
public void testCaOptions() throws Exception {
CaOptions options = new CaOptions();
assertEquals(Collections.emptyList(), options.getCertPaths());
assertNullPointerException(() -> options.addCertPath(null));
assertIllegalArgumentException(() -> options.addCertPath(""));
String randString = TestUtils.randomAlphaString(100);
options.addCertPath(randString);
assertEquals(Collections.singletonList(randString), options.getCertPaths());
assertEquals(Collections.emptyList(), options.getCertValues());
assertNullPointerException(() -> options.addCertValue(null));
randString = TestUtils.randomAlphaString(100);
options.addCertValue(Buffer.buffer(randString));
assertEquals(Collections.singletonList(Buffer.buffer(randString)), options.getCertValues());
}