### Question:
JsonParser { public static String serialize(Object object) { try { return new ObjectMapper().writeValueAsString(object); } catch (JsonProcessingException ex) { log.error(ex.getMessage(),ex); } return null; }  static String serialize(Object object); static T deserialize(String json, Class<T> type); static T deserialize(String json, Class<?> type, Class<?> genericType); static String getValue(String key, String json);  }### Answer:
@Test public void serialize_JsonRole_shouldReturnOk() { Role role = getDefaultRole(); String expectedJsonRole = getJsonRole(getDefaultRole()); String jsonRole = JsonParser.serialize(role); assertTrue(jsonRole.equals(expectedJsonRole)); }