@Test
public void testProcessWhenJsonParserThrowsExceptionShouldLogError() throws ApplicationException {

    //GIVEN
    Whitebox.setInternalState(underTest, "logger", logger);
    //GIVEN
    given(request.getHeader(CONTENT_TYPE_HEADER)).willReturn(CONTENT_TYPE_JSON);
    given(request.getBody()).willReturn("{foo: ['bar', 'baz',]*/*-}");
    //WHEN
    underTest.process(request);
    //THEN
    verify(logger).error(Mockito.anyString());
}