public void writeTo(T object, DataWriter writer) throws IOException {
        writeTo(object, 0, writer);
    }
@Test
    public void testNotExportedBean() throws IOException {
        ExportConfig config = new ExportConfig().withFlavor(Flavor.JSON).withExportInterceptor(new ExportInterceptor1()).withSkipIfFail(true);
        StringWriter writer = new StringWriter();
        ExportableBean b = new ExportableBean();
        builder.get(ExportableBean.class).writeTo(b,Flavor.JSON.createDataWriter(b, writer, config));
        Assert.assertEquals("{\"_class\":\""+ExportableBean.class.getName()+"\",\"name\":\"property1\",\"notExportedBean\":{},\"shouldBeNull\":null}",
                writer.toString());
    }