@Test
public void validateShouldCallDirectoryValidate() throws CruiseControlException {

    final Called validate = new Called();
    builder.directory = new Directory() {
        @Override
        public void validate() {
            validate.called = true;
        }
    };
    builder.validate();
    assertTrue(validate.called);
}