@SuppressWarnings({"rawtypes", "unchecked"})
  @Test
  public void testPlantUMLExecute()
      throws MojoExecutionException, ClassNotFoundException, MojoFailureException, IOException {
    packages.add("com.iluwatar.testdomain");
    mojo.execute();

    Path pumlPath = Paths.get(PROJECT_NAME + ".urm.puml");
    assertThat(Files.exists(pumlPath), is(true));
    Files.delete(pumlPath);
  }
 @Test(expected = MojoFailureException.class)
 public void failsWithNoPackagesDefined()
     throws MojoExecutionException, ClassNotFoundException, MojoFailureException {
   mojo.execute();
 }