use of com.hubspot.rosetta.beans.MapStoredAsJsonBean in project Rosetta by HubSpot.
the class StoredAsJsonTest method testSerializingMapStoredAsJsonBean.
@Test
public void testSerializingMapStoredAsJsonBean() {
MapStoredAsJsonBean bean = new MapStoredAsJsonBean(ImmutableMap.of("A", new PolymorphicBeanA()));
JsonNode node = Rosetta.getMapper().valueToTree(bean);
assertThat(node.get("beans")).isNotNull();
assertThat(node.get("beans").textValue()).contains("beanType");
}
Aggregations