@Test
public void testCreateAlreadyExisting() throws URISyntaxException {

    when(ioService.exists(any(org.uberfire.java.nio.file.Path.class))).thenReturn(true);
    try {
        drlService.create(path, filename, "", "");
        fail("FileAlreadyExistsException was not thrown when expected!");
    } catch (FileAlreadyExistsException faee) {
        // this is correct behavior, anz other exception is a problem
    }
    verify(ioService, never()).write(any(org.uberfire.java.nio.file.Path.class), anyString(), any(OpenOption.class));
}