@Test
public void testMappingSelectedInCorrectSequence() throws Exception {

       FileResourceObjectRepository files = filesIn(folder.getRoot());
       MappingResourceObjectProvider provider = patternMatching()
           .when(".*\\.txt$", files)
           .otherwise(inHeap());
       ResourceObject object = given(anObject("test","-en_US",".txt"));
       files.put(object.name(), in(Locale.US), object::asStream);
	ResourceObject file = provider.get(object.name(), in(Locale.US));
       assertEquals(object.name(), file.name());
       assertTrue(file.actualName().endsWith(object.actualName()));
	assertEquals(object.size(), file.size());
}