@Test
public void emailLogin() throws Throwable {

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