JSONEntityMarshaller m = new JSONEntityMarshaller();
SimplePojo entity = new SimplePojo("test");
AnnotatedPojo marshallable = new AnnotatedPojo(entity);
View v = m.marshall(marshallable);
assertTrue(v instanceof JSON);
assertEquals(new JSON(entity).toString(), ((JSON)v).toString());
}