@Test
public void testProcessWhenTransformerFactoryThrowsExceptionShouldLogError() throws ApplicationException, TransformerConfigurationException {

    //GIVEN
    Whitebox.setInternalState(underTest, "logger", logger);
    given(request.getHeader(CONTENT_TYPE_HEADER)).willReturn(CONTENT_TYPE_SOAPXML);
    given(transformerFactory.createTransformer()).willThrow(new TransformerConfigurationException(""));
    //WHEN
    underTest.process(request);
    //THEN
    verify(logger).error(Mockito.anyString());
}