@Test
public void initializeViewWhileLoading()
        throws Exception {

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