}
}
@SuppressWarnings("null")
public void testAccountMarshaling() throws Exception {
final Merchant e = getEntityGraph().getEntitiesByType(Merchant.class).iterator().next();
Assert.assertTrue(e != null && e.getParent() != null && e.getPaymentInfo() != null && e.getPaymentInfo().getPaymentData() != null);
final MarshalOptions mo = getMarshalOptionsResolver().resolve(SmbizEntityType.MERCHANT);
final Model m = getMarshaler().marshalEntity(e, mo);
final Merchant e2 = getMarshaler().marshalModel(m, Merchant.class);
Assert.assertNotNull(e2.getParent());
Assert.assertEquals(e, e2);
Assert.assertEquals(e.getVersion(), e2.getVersion());
Assert.assertEquals(e.getVersion(), e.getVersion());
}