@Test(expected = Directory.DirectoryNotSpecifiedException.class)
public void validateShouldFailIfPathNotSpecified() throws CruiseControlException {

    Directory directory = new Directory();
    directory.validate();
}