### Question:
FlumeSpoutConfiguration implements Supplier<Configuration>, Serializable { public void setServiceProviderSerializationClassName(String serviceProviderSerializationClassName) throws ClassNotFoundException { Class<?> serviceProviderSerializationClass = Class.forName(serviceProviderSerializationClassName); Preconditions.checkArgument(ServiceProviderSerialization.class.isAssignableFrom(serviceProviderSerializationClass), "The class must implement " + ServiceProviderSerialization.class.getCanonicalName()); this.serviceProviderSerializationClassName = serviceProviderSerializationClassName; } 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 = ClassNotFoundException.class) public void testServiceProviderSerializationClassName1() throws ClassNotFoundException { new FlumeSpoutConfiguration().setServiceProviderSerializationClassName("not-a-class"); }
@Test(expected = IllegalArgumentException.class) public void testServiceProviderSerializationClassName2() throws ClassNotFoundException { new FlumeSpoutConfiguration().setServiceProviderSerializationClassName("java.lang.String"); }