@Test
public void usernameLogin() throws Throwable {

    when(rxTapglue.loginWithUsername(USERNAME, PASSWORD)).thenReturn(Observable.just(user));
    assertThat(tapglue.loginWithUsername(USERNAME, PASSWORD), equalTo(user));
}