JsonJCasConverterBuilder { public JsonJCasConverter build() { Collection<Class<? extends BaleenAnnotation>> white = createList(whitelist); Collection<Class<? extends BaleenAnnotation>> black = createList(blacklist); return new JsonJCasConverter(monitor, white, black); } JsonJCasConverterBuilder(UimaMonitor monitor); JsonJCasConverterBuilder withWhitelist(Collection<String> whitelist); JsonJCasConverterBuilder withBlacklist(Collection<String> blacklist); JsonJCasConverter build();  }
@Test public void testRountTrip() throws IOException, UIMAException { final JsonJCasConverter converter = createBuilder().build(); JCasSerializationTester testUtil = new JCasSerializationTester(); final String json = converter.serialise(testUtil.getIn()); converter.deserialise(testUtil.getOut(), json); testUtil.assertCompleteMatch(); }