@Test
public void shouldRenderMenuWhenUserIsLoggedIn() throws IOException {

    RapidFtrApplication instance = RapidFtrApplication.getApplicationInstance();
    instance.setCurrentUser(createUser());
    RapidFtrActivity loginActivity = new LoginActivity_();
    Menu menu = mock(Menu.class);
    doReturn(mock(MenuItem.class)).when(menu).getItem(anyInt());
    doReturn(mock(MenuItem.class)).when(menu).findItem(anyInt());
    boolean showMenu = loginActivity.onCreateOptionsMenu(menu);
    assertThat(showMenu, is(true));
}