@Test
public void serializesAlphabetically() {

    NodeMapper mapper = new NodeMapper();
    ObjectNode result = mapper.serialize(new Foo()).expectObjectNode();
    Collection<String> keys = result.getStringMap().keySet();
    assertThat(keys, contains("bar", "baz"));
}