@Test
void canConstructRegexForFileExtensions() {

    Set<String> extensions = Collections
        .unmodifiableSet(Sets.newHashSet("jpg", "jpeg", "png"));
    String result = ResourceFileManager.createExtensionRegex(extensions);
    String expected = ".*\\.(?i)(jpg|png|jpeg)";
    assert (expected.equals(result));
}