@Test
public void createActivatorIfNotExistTest() {

    service.createActivatorIfNotExist(path);
    verify(ioServiceMock, times(1))
            .write(any(org.uberfire.java.nio.file.Path.class),
                   anyString(),
                   any(OpenOption.class));
    reset(ioServiceMock);
    when(ioServiceMock.exists(any())).thenReturn(true);
    service.createActivatorIfNotExist(path);
    verify(ioServiceMock, never())
            .write(any(org.uberfire.java.nio.file.Path.class),
                   anyString(),
                   any(OpenOption.class));
}