@Test
public void testRemoveAllGeofenceTC3() {

    // when fence list is not empty
    List<String> ctGeofenceIds = Arrays.asList("111", "222");
    GoogleGeofenceAdapter geofenceAdapter = new GoogleGeofenceAdapter(application);
    when(geofencingClient.removeGeofences(ctGeofenceIds)).thenReturn(task);
    geofenceAdapter.removeAllGeofence(ctGeofenceIds, onSuccessListener);
    try {
        verifyStatic(Tasks.class);
        Tasks.await(task);
        verify(onSuccessListener).onSuccess(null);
    } catch (ExecutionException e) {
        e.printStackTrace();
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
}