### Question:
ValidationMessage implements Serializable { public void setMessageParameters(String[] messageParameters) { this.messageParameters = messageParameters; } 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 setMessageParameters() { ValidationMessage msg = new ValidationMessage(); msg.setMessageParameters(new String[] { "abc", "def", "ghi" }); assertTrue(Arrays.equals(new String[] { "abc", "def", "ghi" }, msg.getMessageParameters())); }