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