### Question:
ValueWritableConverter { Writable toWritable(V value) { try { if (value == null) { return writableNoArgConstructor.newInstance(); } else { return writableConstructor.newInstance(value); } } catch (InstantiationException | IllegalAccessException | InvocationTargetException e) { throw new IllegalStateException(e); } } <W extends Writable> ValueWritableConverter(Class<V> valueClass, Class<W> writableClass);   }### Answer:
@Test public void testToNullText() { assertEquals(new Text(), new ValueWritableConverter<>(String.class, Text.class).toWritable(null)); }