assertEquals(def.getValue(), json.getValue());
}
@Test
public void testPKCS12OptionsJson() throws Exception {
PKCS12Options options = new PKCS12Options(new JsonObject());
assertEquals(null, options.getPassword());
assertEquals(null, options.getPath());
assertEquals(null, options.getValue());
String password = TestUtils.randomAlphaString(100);
String path = TestUtils.randomAlphaString(100);
String value = TestUtils.randomAlphaString(100);
options = new PKCS12Options(new JsonObject().
put("password", password).
put("path", path).
put("value", value.getBytes()));
assertEquals(password, options.getPassword());
assertEquals(path, options.getPath());
assertEquals(Buffer.buffer(value), options.getValue());
}