Message { public static Message createErrorMessage(String msg, long timestamp, int line, String scriptName) { return new Message(ERROR_MSG, msg, timestamp, line, scriptName); } private  Message(int type, String value, long timestamp, int line,
			String scriptName); static Message createErrorMessage(String msg, long timestamp,
			int line, String scriptName); static Message createInfoMessage(String msg, long timestamp,
			int line, String scriptName); static Message createWarningMessage(String msg, long timestamp,
			int line, String scriptName); int getLine(); String getScriptName(); long getTimestamp(); int getType(); String getMessage(); final static int ERROR_MSG; final static int WARN_MSG; final static int INFO_MSG; }
@Test public void testCreateErrorMessage() { long date = new Date().getTime(); Message msg = Message.createErrorMessage("aErrorMsg", date, 2, "here/aScript.txt"); assertEquals(Message.ERROR_MSG, msg.getType()); assertEquals("aErrorMsg", msg.getMessage()); assertEquals(date, msg.getTimestamp()); assertEquals(2, msg.getLine()); assertEquals("here/aScript.txt", msg.getScriptName()); }