### Question:
FlumeSpoutConfiguration implements Supplier<Configuration>, Serializable { public static FlumeSpoutConfiguration from(Configuration config) throws F2SConfigurationException { FlumeSpoutConfiguration result = new FlumeSpoutConfiguration(); try { result.setLocationServiceFactoryClassName(config.getString(LOCATION_SERVICE_FACTORY_CLASS, LOCATION_SERVICE_FACTORY_CLASS_DEFAULT)); } catch (Exception e) { throw F2SConfigurationException.with(config, LOCATION_SERVICE_FACTORY_CLASS, e); } try { result.setServiceProviderSerializationClassName(config.getString(SERVICE_PROVIDER_SERIALIZATION_CLASS, SERVICE_PROVIDER_SERIALIZATION_CLASS_DEFAULT)); } catch (Exception e) { throw F2SConfigurationException.with(config, SERVICE_PROVIDER_SERIALIZATION_CLASS, e); } try { result.setEventReceptorFactoryClassName(config.getString(EVENT_RECEPTOR_FACTORY_CLASS, EVENT_RECEPTOR_FACTORY_CLASS_DEFAULT)); } catch (Exception e) { throw F2SConfigurationException.with(config, EVENT_RECEPTOR_FACTORY_CLASS, e); } result.configuration = getMapFromConfiguration(config); return result; } FlumeSpoutConfiguration();  FlumeSpoutConfiguration(final FlumeSpoutConfiguration other); static FlumeSpoutConfiguration from(Configuration config); String getLocationServiceFactoryClassName(); void setLocationServiceFactoryClassName(String locationServiceFactoryClassName); String getServiceProviderSerializationClassName(); void setServiceProviderSerializationClassName(String serviceProviderSerializationClassName); String getEventReceptorFactoryClassName(); void setEventReceptorFactoryClassName(String eventReceptorFactoryClassName); Configuration get(); void setConfiguration(Map<String, Object> map); void setConfiguration(Configuration configuration); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final String LOCATION_SERVICE_FACTORY_CLASS; static final String LOCATION_SERVICE_FACTORY_CLASS_DEFAULT; static final String SERVICE_PROVIDER_SERIALIZATION_CLASS; static final String SERVICE_PROVIDER_SERIALIZATION_CLASS_DEFAULT; static final String EVENT_RECEPTOR_FACTORY_CLASS; static final String EVENT_RECEPTOR_FACTORY_CLASS_DEFAULT; }### Answer:
@Test(expected = F2SConfigurationException.class) public void testLocationServiceFactoryClassName3() throws F2SConfigurationException { Configuration config = new BaseConfiguration(); config.addProperty(FlumeSpoutConfiguration.LOCATION_SERVICE_FACTORY_CLASS, "not-a-class"); FlumeSpoutConfiguration.from(config); }
@Test(expected = F2SConfigurationException.class) public void testServiceProviderSerializationClassName3() throws F2SConfigurationException { Configuration config = new BaseConfiguration(); config.addProperty(FlumeSpoutConfiguration.SERVICE_PROVIDER_SERIALIZATION_CLASS, "not-a-class"); FlumeSpoutConfiguration.from(config); }
@Test(expected = F2SConfigurationException.class) public void testEventReceptorFactoryClassName3() throws F2SConfigurationException { Configuration config = new BaseConfiguration(); config.addProperty(FlumeSpoutConfiguration.EVENT_RECEPTOR_FACTORY_CLASS, "not-a-class"); FlumeSpoutConfiguration.from(config); }