CompositeData cd = status.toCompositeData();
assertEquals(status.getCode().ordinal(), cd.get("code"));
assertEquals(status.getId(), cd.get("id"));
assertEquals(status.getMessage(), cd.get("message"));
Status status2 = Status.fromCompositeData(cd);
CompositeData cd2 = status2.toCompositeData();
assertEquals(status, status2);
assertEquals(cd, cd2);
}