@Test
public void execute() throws AecuException {

    Resource resource = mock(Resource.class);
    when(resolver.getResource(DIR)).thenReturn(resource);
    when(resource.getName()).thenReturn(FILE1);
    RunScriptResponse response = new RunScriptResponse();
    when(groovyConsoleService.runScript(Mockito.any(), Mockito.any(), Mockito.eq(DIR))).thenReturn(response);
    service.execute(DIR);
}