public void writeTo(T object, DataWriter writer) throws IOException {
        writeTo(object, 0, writer);
    }
@Test(expected = IOException.class)
    public void testNotExportedBeanFailing() throws IOException {
        ExportConfig config = new ExportConfig().withFlavor(Flavor.JSON).withExportInterceptor(new ExportInterceptor2()).withSkipIfFail(true);
        StringWriter writer = new StringWriter();
        ExportableBean b = new ExportableBean();
        builder.get(ExportableBean.class).writeTo(b,Flavor.JSON.createDataWriter(b, writer, config));
    }