UserStore { public Action0 clear() { return store.clear(); } UserStore(Context context); Func1<User, User> store(); Observable<User> get(); Action0 clear(); boolean isEmpty();  }
@Test public void clearCallsInternalStore() { when(internalStore.clear()).thenReturn(clearAction); assertThat(store.clear(), equalTo(clearAction)); }