@Test
public void shouldCompileIntoNextRepository() throws Exception {

  final Repository<Integer> repository = repositoryWithInitialValue(INITIAL_VALUE)
      .observe()
      .onUpdatesPerLoop()
      .thenGetFrom(listSource)
      .compileIntoRepositoryWithInitialValue(INITIAL_INT_VALUE)
      .onUpdatesPerLoop()
      .thenTransform(mockIntegerListToIntValueFunction)
      .compile();
  updatable.addToObservable(repository);
  verify(mockIntegerListToIntValueFunction, atLeastOnce()).apply(LIST);
  assertThat(repository, has(INT_VALUE));
}