public void testDefaultFields() throws Exception {
List<Field> defaultFields = Arrays.asList(DefaultFieldsTest.class.getDeclaredFields());
byte[] code = DelegateGenerator.generate(DefaultFieldsTest.class, new FieldDescriptor[0], defaultFields);
Delegate delegate = StubGenerator.INSTANCE.instantiate(code, Delegate.class);
DefaultFieldsTest obj = (DefaultFieldsTest) delegate.read(new DataStream(0));
assertEquals("abc", obj.s);
assertEquals(0x100, obj.i);
assertEquals(Long.valueOf(-999999), obj.l);
assertEquals(true, obj.getClass().getDeclaredField("b").getBoolean(obj));