### Question:
HoursPeriod { public String toString(){ return "begining:"+begining+" ending:"+ending; } HoursPeriod(int begining,int ending); boolean inPeriod(Date date); String toString(); boolean equals(Object p);  }### Answer:
@Test public void toStringTest() throws ParseException{ HoursPeriod p1=new HoursPeriod(600, 1080); assertEquals("begining:600 ending:1080", p1.toString()); }