@Test
public void testExternalizerAnnotation() throws Throwable {
final TestExternalizerWithAnnotation subject = new TestExternalizerWithAnnotation("Title", 1234);
runReadWriteTest(new ReadWriteTest() {
public void configure(final MarshallingConfiguration configuration) throws Throwable {
configuration.setClassExternalizerFactory(new AnnotationClassExternalizerFactory());
}
public void runWrite(final Marshaller marshaller) throws Throwable {
marshaller.writeObject(subject);
marshaller.writeObject(subject);