### Question:
DynamicLocationServiceConfiguration extends ZkClientConfiguration { public void setServiceName(final String serviceName) { Preconditions.checkArgument(serviceName.length() > 0, "Flume2Storm service name needs to be set"); this.serviceName = serviceName; } DynamicLocationServiceConfiguration();  DynamicLocationServiceConfiguration(final DynamicLocationServiceConfiguration other); static DynamicLocationServiceConfiguration from(Configuration config); String getServiceName(); void setServiceName(final String serviceName); String getBasePath(); void setBasePath(final String basePath); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final String BASE_PATH; static final String BASE_PATH_DEFAULT; static final String SERVICE_NAME; static final String SERVICE_NAME_DEFAULT; }### Answer:
@Test(expected = IllegalArgumentException.class) public void testInvalidServiceName() { new DynamicLocationServiceConfiguration().setServiceName(StringUtils.EMPTY); }