### Question:
Find extends Task { public void setFile(String file) { this.file = file; }  void setFile(String file); void setLocation(String location); void addFileset(FileSet fileset); void execute2();  }### Answer:
@Test public void testMissingLocation() { tried.expect(BuildException.class); tried.expectMessage("location not set"); Find find = new Find(); find.setFile("ant.jar"); find.execute(); }