### Question:
ValidationMessage implements Serializable { public void setType(Type type) { this.type = type; } ValidationMessage();  ValidationMessage(Type type, String field, String messageKey);  ValidationMessage(Type type, String field, String messageKey, String[] messageParameters); Type getType(); void setType(Type type); String getField(); void setField(String field); String getMessageKey(); void setMessageKey(String messageKey); String[] getMessageParameters(); void setMessageParameters(String[] messageParameters);  }### Answer:
@Test void setType() { ValidationMessage msg = new ValidationMessage(); msg.setType(Type.ERROR); assertEquals(Type.ERROR, msg.getType()); }