  @Test
  public void
  should_return_all_houses() throws Exception {

    when(localDataSource.isExpired()).thenReturn(EXPIRED);
    when(networkDataSource.getAll()).thenReturn(getSevenHousesObservable());

    repository.getList()
        .subscribe(list -> Assert.assertThat(list.size(), Is.is(7)), throwable -> fail());

    verify(networkDataSource).getAll();
    verify(localDataSource).save(anyList());
    verify(localDataSource, never()).getAll();
  }