### Question:
LogRecordRequestBody extends AssetConsumerOMASAPIRequestBody { public String getMessage() { return message; } LogRecordRequestBody();  LogRecordRequestBody(LogRecordRequestBody template); String getConnectorInstanceId(); void setConnectorInstanceId(String connectorInstanceId); String getConnectionName(); void setConnectionName(String connectionName); String getConnectorType(); void setConnectorType(String connectorType); String getContextId(); void setContextId(String contextId); String getMessage(); void setMessage(String message); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testJSON() { ObjectMapper objectMapper = new ObjectMapper(); String jsonString = null; try { jsonString = objectMapper.writeValueAsString(getTestObject()); } catch (Throwable exc) { assertTrue(false, "Exception: " + exc.getMessage()); } try { validateResultObject(objectMapper.readValue(jsonString, LogRecordRequestBody.class)); } catch (Throwable exc) { assertTrue(false, "Exception: " + exc.getMessage()); } AssetConsumerOMASAPIRequestBody superObject = getTestObject(); try { jsonString = objectMapper.writeValueAsString(superObject); } catch (Throwable exc) { assertTrue(false, "Exception: " + exc.getMessage()); } try { validateResultObject((LogRecordRequestBody) objectMapper.readValue(jsonString, AssetConsumerOMASAPIRequestBody.class)); } catch (Throwable exc) { assertTrue(false, "Exception: " + exc.getMessage()); } }