### Question:
TimeStamp { public String current(String format){ SimpleDateFormat sdf = new SimpleDateFormat(format); Calendar cal = Calendar.getInstance(); return sdf.format(cal.getTime()); }  String current(String format); String generate(String format, String interval); String generate(String format,String startBound, String endBound);  }### Answer:
@Test public void testCurrent(){ String format = "yyyy,MMM,dd HH:mm:ss"; SimpleDateFormat sdf = new SimpleDateFormat(format); TimeStamp timeStamp = new TimeStamp(); String output = timeStamp.current(format); Assert.assertEquals(output, sdf.format(Calendar.getInstance().getTime())); }