@Test
public void test() throws IOException, JSONException, IllegalAccessException, InstantiationException,
  NoSuchFieldException, NoSuchMethodException, InvocationTargetException
{

  String addressClassName = TupleSchemaRegistry.FQCN_PACKAGE + "Address_v1";
  TupleSchemaRegistry.Schema schema = new TupleSchemaRegistry.Schema();
  schema.addField("streetNumber", long.class);
  schema.addField("streetName", String.class);
  schema.addField("city", String.class);
  schema.addField("state", String.class);
  schema.addField("zip", String.class);
  byte[] beanClass = BeanClassGenerator.createAndWriteBeanClass(addressClassName, schema.fieldList);
  Class<?> clazz = ClassLoaderUtils.readBeanClass(addressClassName, beanClass);
  Object o = clazz.newInstance();
  Field f = clazz.getDeclaredField("streetNumber");
  Assert.assertNotNull(f);
  Method m = clazz.getDeclaredMethod("setStreetNumber", Long.class);
  m.invoke(o, 343L);
  m = clazz.getMethod("getStreetNumber");
  Long result = (Long)m.invoke(o);
  assertEquals("reflect getVal invoke", 343, result.longValue());
}