@Test
public void usernameLoginStoresSessionToken() {

    when(user.getSessionToken()).thenReturn("sessionToken");
    TestSubscriber<User> ts = new TestSubscriber<>();
    network.loginWithUsername(USERNAME, PASSWORD).subscribe(ts);
    verify(storeFunc).call(user);
}