@Test public void unmarshal() { JsonObject json = Json.createObjectBuilder() .add("type", "EC") .add( "properties", Json.createObjectBuilder() .add("greeting", "Hellow") .add("something", "ELSE") .addNull("bogus")) .build(); String data = json.toString(); EncryptorConfig result = JaxbUtil.unmarshal(new ByteArrayInputStream(data.getBytes()), EncryptorConfig.class); assertThat(result.getProperties()).containsKeys("greeting", "something", "bogus"); assertThat(result.getProperties().get("greeting")).isEqualTo("Hellow"); assertThat(result.getProperties().get("something")).isEqualTo("ELSE"); assertThat(result.getProperties().get("bogus")).isNull(); }
public Map<String, String> getProperties() { return properties; }
EncryptorConfig { public Map<String, String> getProperties() { return properties; } }
EncryptorConfig { public Map<String, String> getProperties() { return properties; }  }
EncryptorConfig { public Map<String, String> getProperties() { return properties; }  EncryptorType getType(); void setType(EncryptorType type); Map<String, String> getProperties(); void setProperties(Map<String, String> properties); @Override int hashCode(); @Override boolean equals(Object obj); static EncryptorConfig getDefault(); }
EncryptorConfig { public Map<String, String> getProperties() { return properties; }  EncryptorType getType(); void setType(EncryptorType type); Map<String, String> getProperties(); void setProperties(Map<String, String> properties); @Override int hashCode(); @Override boolean equals(Object obj); static EncryptorConfig getDefault();  }