### Question:
DataTypeHelperImpl implements DataTypeHelper { @Override public void setup(Configuration config) { initType(config); String policyEnforcerClass = ""; if (null != config.get("all" + Properties.INGEST_POLICY_ENFORCER_CLASS)) { policyEnforcerClass = config.get("all" + Properties.INGEST_POLICY_ENFORCER_CLASS); } if (null != config.get(getType().typeName() + Properties.INGEST_POLICY_ENFORCER_CLASS)) { policyEnforcerClass = config.get(getType().typeName() + Properties.INGEST_POLICY_ENFORCER_CLASS); } try { ingestPolicyEnforcer = (IngestPolicyEnforcer) Class.forName(policyEnforcerClass).newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { logger.error(e.getLocalizedMessage()); throw new RuntimeException(e.getLocalizedMessage()); } aliaser.setup(getType(), config); }  @Override void setup(Configuration config); Type getType(); String clean(String fieldName, String fieldValue); IngestPolicyEnforcer getPolicyEnforcer(); void setPolicyEnforcer(IngestPolicyEnforcer ingestPolicyEnforcer);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testInvalidConfig() { DataTypeHelperImpl helper = new DataTypeHelperImpl(); TypeRegistry.reset(); TypeRegistry.getInstance(conf); helper.setup(conf); }