@Test
public void initializeViewWhileNotLoading()
        throws Exception {

    // given
    loginPresenter.username = "Hello";
    loginPresenter.password = "World";
    LoginPresenter.isLoading = false;
    // when
    loginPresenter.attachView(viewContract);
    // then
    Mockito.verify(viewContract).setUsername("Hello");
    Mockito.verify(viewContract).setPassword("World");
    Mockito.verify(viewContract).hideLoading();
}