### Question:
ServiceMap { public void itemAdded( T item, @SuppressWarnings( "rawtypes" ) Map config ) { if ( item == null ) { return; } String key = getKeyFromConfig( config ); synchronized ( map ) { map.put( key, new MapItem<T>( key, item ) ); } }  T getItem( String key ); void itemAdded( T item, @SuppressWarnings( "rawtypes" ) Map config ); void itemRemoved( T item, @SuppressWarnings( "rawtypes" ) Map config ); static final String SERVICE_KEY_PROPERTY; }### Answer:
@Test( expected = IllegalArgumentException.class ) public void testServiceMapKeyException() { serviceMap = new ServiceMap<String>(); serviceMap.itemAdded( VALUE1, ImmutableMap.of() ); }