@Test
public void getFallbackScript_Exists() {

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