@Test
public void testOnReceiveWhenLocationResultIsNull() {

    CTLocationUpdateReceiver receiver = new CTLocationUpdateReceiver();
    CTLocationUpdateReceiver spy = Mockito.spy(receiver);
    when(spy.goAsync()).thenReturn(pendingResult);
    spy.onReceive(application, null);
    verify(pendingResult).finish();
}