@Test
public void runShouldSetLogonCompletedIfNetworkIsUp() {

    when(networkService.isNetworkUp()).thenReturn(true);
    assertFalse(chatState.isLogonCompleted());
    logonTask.run();
    assertTrue(chatState.isLogonCompleted());
}