### Question:
MyApi { public synchronized String getNow() { return sdf.format(new Date()); }  synchronized String getNow(); static void main(String[] args); volatile SimpleDateFormat sdf; }### Answer:
@Test public void getNow() { String now = api.getNow(); assertEquals(now.length(), 19); }