    @Test
    public void apply2() {

        String jsonString = "{\"database\":cube,\"requestType\":\"SQL\",\"auth\":\"authCode\",\"requestId\":\"93eceaf1-4e47-40a1-84e9-814404eb7ad5\",\"sql\":\"select * from tableA\"}";
        JdbcExecutor mockJdbcExecutor = PowerMock.createMock(JdbcExecutor.class);
        ApiResponse mockApiResponse = PowerMock.createMock(ApiResponse.class);
        EasyMock.expect(mockApiResponse.isError()).andReturn(false).anyTimes();
        SwiftResponse mockRpcResponse = PowerMock.createMock(SwiftResponse.class);
        EasyMock.expect(mockRpcResponse.getResult()).andReturn(mockApiResponse).anyTimes();
        EasyMock.expect(mockJdbcExecutor.send(EasyMock.notNull(SwiftRequest.class))).andReturn(mockRpcResponse).anyTimes();
        PowerMock.replayAll();
        ApiResponse response = new RequestServiceImpl().apply(mockJdbcExecutor, jsonString);
        assertFalse(response.isError());
        PowerMock.verifyAll();
    }