### Question:
Message { public MessageType getType() { return type; } Message();  Message(MessageType type, String content); MessageType getType(); void setType(MessageType type); String getContent(); void setContent(String content); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testGetType() { var message = new Message(MessageType.HEARTBEAT, ""); assertEquals(MessageType.HEARTBEAT, message.getType()); }