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