@Test
public void testCreateEnumAlreadyExists() {

    final Path path = PathFactory.newPath("enum.enumeration", "file:///enum.enumeration");
    when(ioService.exists(any(org.uberfire.java.nio.file.Path.class))).thenReturn(true);
    assertThatThrownBy(() -> enumService.create(path, "", "", ""))
            .isInstanceOf(FileAlreadyExistsException.class);
}