@Test
public void canWrite() throws Exception {

    TestMe test = new TestMe("foo", 42, new TestMe("bar", 666, null));
    String json = om.writeValue(test);
    JSONAssert.assertEquals(
            "{\"text\":\"foo\",\"nmbr\":42,\"another\":{\"text\":\"bar\",\"nmbr\":666}}"
            , json
            , true
    );
}