@Test
public void buildWithTargetShouldBePassedToCommandLine() throws CruiseControlException {

    final Called cmdLine = new Called();        
    builder = builderForBuildTest(cmdLine);
    
    builder.buildWithTarget(buildProperties, "target", null);
    assertTrue(cmdLine.called);
    assertTrue(cmdLine.with.contains("-target target"));
}