@Test
public void testDoGetShouldSetContentTypeToTextWhenReqParamSourceIsNotTrue() throws ServletException, IOException,
        JsonTransformationException {

    //GIVEN
    given(request.getParameter("source")).willReturn("");
    given(request.getHeader("User-Agent")).willReturn(null);
    given(stubResourceHolder.getActualStubConfigJsonObject(DEFAULT_GROUPNAME)).willReturn(jsonObject);
    byte[] xmlAsByteArray = "DOCUMENT".getBytes();
    given(jsonBasedObjectTransformer.transform(jsonObject)).willReturn(xmlAsByteArray);
    given(byteArrayConverter.toString(xmlAsByteArray)).willReturn(FILE_CONTENT);
    //WHEN
    underTest.doGet(request, response);
    //THEN
    verify(response).setContentType("text/plain");
}