### Question:
SchedulingAtom { public boolean isAfter(SchedulingAtom atom) { return (this.hour * 60 + this.minute) > (atom.hour * 60 + atom.minute); } SchedulingAtom(Map<String, Object> atomMap);  SchedulingAtom(int hour, int minute, Integer duration, String media);  SchedulingAtom(String formattedTime, Integer duration, String media); static boolean isValid(Object atom, boolean withDuration, boolean withMedia); boolean isAfter(SchedulingAtom atom); int getHour(); int getMinute(); Integer getDuration(); String getMedia(); String getFormattedTime(); Map<String, Object> getSchedulingAtomMap(APICaller caller); static final String HOUR; static final String MINUTE; static final String DURATION; static final String MEDIA; }### Answer:
@Test public void isAfterTest() { final SchedulingAtom atom1 = new SchedulingAtom(5, 30, null, null); final SchedulingAtom atom2 = new SchedulingAtom(8, 20, null, null); final SchedulingAtom atom3 = new SchedulingAtom(10, 45, null, null); final SchedulingAtom atom4 = new SchedulingAtom(10, 45, null, null); Assert.assertTrue(atom3.isAfter(atom2)); Assert.assertTrue(atom3.isAfter(atom1)); Assert.assertTrue(atom2.isAfter(atom1)); Assert.assertFalse(atom2.isAfter(atom3)); Assert.assertFalse(atom1.isAfter(atom3)); Assert.assertFalse(atom4.isAfter(atom3)); }