@Test
public void testIsJsonMessage() throws Exception {

    //GIVEN
    //WHEN
    boolean jsonResult = underTest.isJsonMessage(requestOf("{\"property\":\"value\"}"));
    boolean jsonArrayResult = underTest.isJsonMessage(requestOf("{\"list\":[{\"key\":\"value\"},{\"key\":\"value\"}]}"));
    boolean xmlResult = underTest.isJsonMessage(requestOf("<root><child></child></root>"));
    boolean emptyResult = underTest.isJsonMessage(requestOf(""));
    boolean textResult = underTest.isJsonMessage(requestOf("simple text"));
    //THEN
    assertTrue(jsonResult);
    assertTrue(jsonArrayResult);
    assertFalse(xmlResult);
    assertFalse(emptyResult);
    assertFalse(textResult);
}