@Test
public void startRequest_ShouldNotSendClientAddress_WhenNoListenerIsAttached() throws Exception {

    when(ctx.getPackageManager()).thenReturn(pm);
    when(pm.getApplicationInfo(anyString(), anyInt())).thenReturn(appInfo);
    target.startRequest(ctx, null);
    verify(ctx, never()).registerReceiver((BroadcastReceiver) any(), (IntentFilter) any());
    verify(ctx).sendBroadcast(intentCaptor.capture());
    assertThat(intentCaptor.getValue().hasExtra(Nanny.CLIENT_ADDRESS), is(false));
}