@Test
public void testRDRLFile() {

    final Path pathSource = mock(Path.class);
    final Path pathDestination = mock(Path.class);
    when(pathSource.toURI()).thenReturn("file://p0/src/main/resources/MyFile.rdrl");
    when(pathDestination.toURI()).thenReturn("file://p0/src/main/resources/MyNewFile.rdrl");
    when(pathDestination.getFileName()).thenReturn("MyNewFile.rdrl");
    when(ioService.readAllString(any(org.uberfire.java.nio.file.Path.class))).thenReturn(drl);
    helper.postProcess(pathSource,
                       pathDestination);
    final ArgumentCaptor<String> drlArgumentCaptor = ArgumentCaptor.forClass(String.class);
    verify(ioService,
           times(1)).write(any(org.uberfire.java.nio.file.Path.class),
                           drlArgumentCaptor.capture(),
                           any(CommentedOption.class));
    final String newDrl = drlArgumentCaptor.getValue();
    assertNotNull(newDrl);
    assertTrue(newDrl.contains("MyNewFile"));
}