@Test(expected=MissingResourceObjectException.class)
public void testMappingSelectedInCorrectSequence2() throws Exception {

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