ResultMessage implements Serializable { public static ResultMessage fromText(String text) { Assert.notNull(text, "text must not be null"); return new ResultMessage(null, EMPTY_ARRAY, text); } ResultMessage(String code, Object[] args, String text); static ResultMessage fromCode(String code, Object... args); static ResultMessage fromText(String text); String getCode(); Object[] getArgs(); String getText(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test(expected = IllegalArgumentException.class) public void test09() { ResultMessage.fromText(null); }
@Test public void test10() { try { byte[] serialized = SerializationUtils.serialize(ResultMessage .fromText("foo")); SerializationUtils.deserialize(serialized); } catch (SerializationFailedException e) { fail(); } }