    @Test
    public void testPermission_whenPermissionIsGranted_thenShouldReturnLocation() throws Exception {

        RootRequest rootRequest = TestObjects.permissionGrantedLocationRequest(true);
        PermissionRequestHandler permissionRequestHandler = new PermissionRequestHandler(rootRequest) {
            @Override
            public RootResponse getResponse() {
                return new RootResponse();
            }
        };

        Location location = permissionRequestHandler.getLocation();
        assertNotNull(location);
        assertEquals(rootRequest.device.location, location);
    }