### Question:
Heartbeats { public void deleteHeartbeat(Heartbeat heartbeat, ACS acs) throws SQLException { if (!acs.getUser().isUnittypeAdmin(unittype.getId())) { throw new IllegalArgumentException("Not allowed action for this user"); } deleteHeartbeatImpl(heartbeat, acs); idMap.remove(heartbeat.getId()); nameMap.remove(heartbeat.getName()); } Heartbeats(
      Map<Integer, Heartbeat> idMap, Map<String, Heartbeat> nameMap, Unittype unittype); Heartbeat getById(Integer id); Heartbeat getByName(String name); Heartbeat[] getHeartbeats(); @Override String toString(); void addOrChangeHeartbeat(Heartbeat heartbeat, ACS acs); void deleteHeartbeat(Heartbeat heartbeat, ACS acs);  }### Answer:
@Test public void deleteHeartbeat() {}