### Question:
DefaultValueFactory implements ValueFactory { public String getStringEncoding() { return "utf-8"; } DefaultValueFactory( String uri, TypeMap types,
		Class2TypeMap class2type ); static final void init( TypeMap types, Class2TypeMap class2type ); final Type get_mt__Etch_RuntimeException(); final Type get_mt__Etch_List(); final Type get_mt__Etch_Map(); final Type get_mt__Etch_Set(); final Type get_mt__Etch_Datetime(); final Type get_mt__Etch_AuthException(); final Type get_mt__exception(); final Type getType( Integer id ); final Type getType( String name ); void addType( Type type ); final Set<Type> getTypes(); final StructValue exportCustomValue( Object value ); final Object importCustomValue( StructValue struct ); final Type getCustomStructType( Class<?> c ); String getStringEncoding(); final Long getMessageId( Message msg ); final void setMessageId( Message msg, Long msgid ); Field get_mf__messageId(); final Long getInReplyTo( Message msg ); final void setInReplyTo( Message msg, Long msgid ); Field get_mf__inReplyTo(); void lockDynamicTypes(); Level getLevel(); Level setLevel( Level level ); void unlockDynamicTypes(); static final Field _mf_msg; static final Field _mf__messageId; static final Field _mf__inReplyTo; static final Field _mf_result; }### Answer:
@Test public void getStringEncoding() throws Exception { String enc = vf.getStringEncoding(); String s = new String( new byte[] { 'a', 'b', 'c' }, enc ); assertEquals( "abc", s ); }