@Test
public void shouldReturnNewValueAfterBundleIsAddedToRepository() throws Exception {

    Clock clock = Clock.systemUTC();
    String bundleName = "folder.bundle";
    String objectName = "folder/bundle.properties";
    ResourceKey key = key(bundleName, "value");
    ResourceResolutionContext ctx = withoutContext();
    ResourceObjectRepository repository = new HeapResourceObjectRepository(clock);
    RefreshableResources resources = new RefreshableResources(configure().sources(repository).get());
    OptionalString v1 = resources.get(key, ctx);
    assertNull(v1.asIs());
    ResourceObject bundle = given(aPropertiesBundle(objectName, objectName)
            .with(key.getId(),"1"));
    repository.put(objectName, ctx, bundle::asStream);
    OptionalString v2 = resources.get(key, ctx);
    assertEquals("1", v2.notNull().asIs());
}