@Test
public void testSendOnCompleteEventWhenListenerIsNull() {

    // when listener is null
    PushGeofenceEventTask task = new PushGeofenceEventTask(application, intent);
    task.setOnCompleteListener(null);
    try {
        WhiteboxImpl.invokeMethod(task, "sendOnCompleteEvent");
    } catch (Exception e) {
        e.printStackTrace();
    }
    Mockito.verify(onCompleteListener, times(0)).onComplete();
}