### Question:
TimeSum { public int getAsMinutes() { return hours * 60 + minutes; }  void set(int hours, int minutes); void add(int hoursToAdd, int minutesToAdd); void substract(int hoursToSubstract, int minutesToSubstract); void addOrSubstract(TimeSum timeSum); @Override String toString(); int getAsMinutes(); void reset();  }### Answer:
@Test public void getAsMinutes() { assertEquals(0, getAsMin()); set(1, 30); assertEquals(90, getAsMin()); set(-1, 30); assertEquals(-90, getAsMin()); }