@Test
public void createRULEScenario() throws Exception {

    doReturn(false).when(ioServiceMock).exists(any());
    ScenarioSimulationModel model = new ScenarioSimulationModel();
    assertNull(model.getSimulation());
    assertNull(model.getBackground());
    assertNull(model.getSettings());
    final Path returnPath = service.create(this.path,
                                           "test.scesim",
                                           model,
                                           "Commit comment",
                                           Type.RULE,
                                           null);
    assertNotNull(returnPath);
    assertNotNull(model.getSimulation());
    assertNotNull(model.getBackground());
    assertNotNull(model.getSettings());
    verify(ioServiceMock, times(2)).write(any(org.uberfire.java.nio.file.Path.class),
                                          anyString(),
                                          any(CommentedOption.class));
}