### Question:
StructuredData { public static synchronized void init(Schema schema) { checkNotNull(schema, "schema cannot be null"); dateTimeParsers.compareAndSet(ImmutableList.of(), DEFAULT_DATETIME_PARSERS); List<ObjectDefinition> objectDefinitions = schema.getObjectDefinitions() == null ? Collections.emptyList() : schema.getObjectDefinitions(); ImmutableMap<String, StructuredData> mappings = objectDefinitions .stream() .collect( ImmutableMap.toImmutableMap( objDefinition -> objDefinition.getName(), objDefinition -> new StructuredData(objDefinition))); structuredDataMapping.set(mappings); initialized.set(true); } private  StructuredData(ObjectDefinition objectDefinition); static synchronized void initFromConfiguration(IndexingService indexingService); static synchronized void init(Schema schema); static boolean isInitialized(); static boolean hasObjectDefinition(String objectType); static StructuredDataObject getStructuredData(
      String objectType, Multimap<String, Object> values); static final String DATETIME_PATTERNS; static final String LOCAL_SCHEMA; }### Answer:
@Test public void testInitNullSchema() { thrown.expect(NullPointerException.class); StructuredData.init(null); }
@Test public void testInit() { StructuredData.init(new Schema()); assertTrue(StructuredData.isInitialized()); }