### Question:
QuestionRecordEncoder { public void put( IoBuffer out, QuestionRecord question ) { encodeDomainName( out, question.getDomainName() ); encodeRecordType( out, question.getRecordType() ); encodeRecordClass( out, question.getRecordClass() ); }  void put( IoBuffer out, QuestionRecord question );  }### Answer:
@Test public void testEncode() { IoBuffer out = IoBuffer.allocate( 128 ); encoder.put( out, record ); assertEquals( expectedData, out ); }