MavenGoal extends TransformationUtility<MavenGoal> { public MavenGoal setProperties(Properties properties) { checkForNull("Maven properties", properties); this.properties = properties; return this; } MavenGoal();  MavenGoal(String... goals);  MavenGoal(String[] goals, MavenInvocationOutputHandler[] outputHandlers); MavenGoal setGoals(String... goals); MavenGoal setOutputHandlers(MavenInvocationOutputHandler... outputHandlers); MavenGoal setProperties(Properties properties); MavenGoal setWarnOnError(boolean warnOnError); String[] getGoals(); Properties getProperties(); MavenInvocationOutputHandler[] getOutputHandlers(); @Override String getDescription(); @Override MavenGoal clone();  }
@Test(expectedExceptions = TransformationDefinitionException.class) public void throwsIfTryAndSetPropertiesToNull() { mavenGoal.setProperties(null); }