@Test
public void shouldReturnNewValueAfterItIsAddedToRepository() throws Exception {

    Clock clock = Clock.systemUTC();
    String bundleName = "folder.bundle";
    ResourceKey key = key(bundleName, "value");
    ResourceResolutionContext ctx = withoutContext();
    ResourceValueRepository repository = new HeapResourceObjectRepository(clock);
    RefreshableResources resources = new RefreshableResources(
            configure()
                    .sources(repository)
                    .get());
    OptionalString v1 = resources.get(key, ctx);
    assertNull(v1.asIs());
    repository.put(key, ctx, "1");
    OptionalString v2 = resources.get(key, ctx);
    assertEquals("1", v2.notNull().asIs());
}