@Test
public void should_serialize_map_into_json() throws Exception {

    Map<String, String> map = new HashMap<>();
    map.put("name", "walter");
    map.put("lastname", "bates");
    JSONAssert.assertEquals(new String(objectMapper.toJson(map)), "{\"name\":\"walter\",\"lastname\":\"bates\"}", false);
}