### Question:
TimestampLiteralConvertor implements LiteralConvertor<Timestamp> { @Override public String convert(Timestamp target) { checkNotNull(target); StringBuilder sb = new StringBuilder(); sb.append(QUOTE_STRING); sb.append(target.toString()); sb.append(QUOTE_STRING); return sb.toString(); } TimestampLiteralConvertor(); @Override String convert(Timestamp target); @Override Class<?> getJavaType();  }### Answer:
@Test public void Timeの値をリテラルに変換する() throws Exception { Calendar cal = Calendar.getInstance(); cal.set(2011, 10, 1, 12, 0, 0); Timestamp timestamp = new Timestamp(cal.getTimeInMillis()); timestamp.setNanos(0); assertThat(target.convert(timestamp), is("'2011-11-01 12:00:00.0'")); }
@Test(expected = InternalException.class) public void 引数がNULLであることを表明() throws Exception { target.convert(null); }