@Test
public void testCreate() throws Exception {

    final String fileName = "enum.enumeration";
    final String fileContent = "'Person.age' : [10,20,30]\n";
    final String comment = "comment of the author";
    when(commentedOptionFactory.makeCommentedOption(comment)).thenReturn(commentedOption);
    enumService.create(PathFactory.newPath(fileName, getClass().getResource("enums").toString()),
                       fileName,
                       fileContent,
                       comment);
    verify(ioService).write(any(org.uberfire.java.nio.file.Path.class), eq(fileContent), eq(commentedOption));
}