public class TestEmployee2 { private void println(String s) { System.out.println(s); } private void error(String s) { System.out.println("Error: " + s); } public static void main(String[] args) { TestEmployee2 app = new TestEmployee2(); app.test(); } private boolean check(final Employee2 e, final int id, final double rate, final String... names) { if (e.getID() != id) return false; if (e.getHourlyRate() != rate) return false; if (names == null) return false; int numNames = e.getNumberOfFirstNames() + 1; if (numNames != names.length) return false; for (int i=0; i