ValueMarshallerImpl implements ValueMarshaller { @Override public Object getWritableObject(OrcStruct struct) { return inspector.getStructFieldData(struct, structField); } ValueMarshallerImpl(SettableStructObjectInspector inspector, StructField structField, Converter converter); @Override Object getJavaObject(OrcStruct struct); @Override Object getWritableObject(OrcStruct struct); @Override void setWritableObject(OrcStruct struct, Object javaObject);  }
@Test public void getWritable() throws UnexpectedTypeException { when(inspector.getStructFieldData(null, structField)).thenReturn(text); Object writableObject = marshaller.getWritableObject(null); assertThat(writableObject, is((Object) text)); verify(inspector).getStructFieldData(null, structField); }