@SuppressWarnings("unchecked")
@Test
public void processRequestInContextAuthorizedGet() {

    Mockito.when(request.getMethod()).thenReturn("GET");
    Mockito.when(
            apiServer.verifyRequest(Mockito.anyMap(), Mockito.anyLong()))
            .thenReturn(true);
    servlet.processRequestInContext(request, response);
    Mockito.verify(response).setStatus(HttpServletResponse.SC_OK);
    Mockito.verify(apiServer, Mockito.times(1)).handleRequest(
            Mockito.anyMap(), Mockito.anyString(),
            Mockito.any(StringBuilder.class));
}