@Test
@SuppressWarnings("unchecked")
public void checkSave() {

    final Path path = mock(Path.class);
    final GuidedDecisionTable52 model = new GuidedDecisionTable52();
    final Metadata metadata = mock(Metadata.class);
    final String comment = "comment";
    when(path.toURI()).thenReturn("file://project/src/main/resources/mypackage/dtable.gdst");
    service.save(path,
                 model,
                 metadata,
                 comment);
    verify(ioService,
           times(1)).write(any(org.uberfire.java.nio.file.Path.class),
                           any(String.class),
                           any(Map.class),
                           any(CommentedOption.class));
    assertEquals("mypackage",
                 model.getPackageName());
}