@Test
public void getFallbackScript_DirectoryLevel() {

    when(resolver.getResource("/path/to/script1.fallback.groovy")).thenReturn(mock(Resource.class));
    when(resolver.getResource("/path/to/fallback.groovy")).thenReturn(mock(Resource.class));
    assertEquals("/path/to/script1.fallback.groovy", service.getFallbackScript(resolver, "/path/to/script1.always.groovy"));
    assertEquals("/path/to/script1.fallback.groovy", service.getFallbackScript(resolver, "/path/to/script1.groovy"));
    assertEquals("/path/to/fallback.groovy", service.getFallbackScript(resolver, "/path/to/script2.always.groovy"));
    assertEquals("/path/to/fallback.groovy", service.getFallbackScript(resolver, "/path/to/script2.groovy"));
}