### Question:
ClientTime extends ClientLiteral<Time, ClientTime> { @Override public String toString() { String valueString; Time value = getValue(); try { valueString = (value != null) ? FORMATTER.format(value) : ClientExpressions.MISSING_REPRESENTATION; } catch (IllegalArgumentException e) { valueString = ClientExpressions.MISSING_REPRESENTATION; } String zeroMilliseconds = "(\\.0+)$"; if (valueString.contains(".") && Pattern.matches("[\\d\\s:]*" + zeroMilliseconds, valueString)) { valueString = valueString.substring(0, valueString.indexOf(".")); } return "t'" + valueString + "'"; } ClientTime();  ClientTime(Time time);  ClientTime(ClientTime source); @Override @XmlJavaTypeAdapter(ELTimeAdapter.class) Time getValue(); @Override ClientTime setValue(Time value); static ClientTime valueOf(String string); @Override ClientTime deepClone(); @Override String toString(); @Override void accept(ClientELVisitor visitor); static final String EXPRESSION_ID; static final DateFormat FORMATTER; }### Answer:
@Test @Override public void generatedStringBeginsWithClassName() { assertEquals(FORMATTED_TIME_TO_STRING, fullyConfiguredTestInstance.toString()); }
@Test public void generatedStringForNullTimeReturnsExceptionString() { ClientTime instance = new ClientTime(((Time) null)); assertEquals(instance.toString(), NON_PARCELABLE_TIME_TO_STRING); }