### Question:
NucleoConsole { public void setDateAndTime(Date date){ setDate(date); setTime(date); } NucleoConsole(Debug console); void setName(String newName); void setTime(Date date); void setDate(Date date); void setDateAndTime(Date date);  }### Answer:
@Test public void setDateAndTimeSend2Commands(){ Date date = new GregorianCalendar(2001,01,03,04,05,06).getTime(); mNucleo.setDateAndTime(date); verify(mConsole).write("setDate 06/03/02/01\n"); verify(mConsole).write("setTime 04:05:06\n"); }