### Question:
DefaultProfileSet extends LinkedHashMap implements ProfileSet { public void addProfile(String profile) { addProfile(new BasicProfile(profile)); } DefaultProfileSet(String baseProfile); String getBaseProfile(); boolean isMember(String profile); void addProfile(String profile); @SuppressWarnings("unchecked") void addProfile(Profile profile); Profile getProfile(String profile); Iterator iterator(); void addProfiles(String[] subProfiles); String toString(); static DefaultProfileSet create(String baseProfile, String[] subProfiles);  }### Answer:
@Test public void testAddProfile_exceptions() { DefaultProfileSet set = new DefaultProfileSet("baseProfile"); try { set.addProfile((Profile) null); fail("no arg exception on null"); } catch (IllegalArgumentException e) { } try { set.addProfile(""); fail("no arg exception on empty"); } catch (IllegalArgumentException e) { } try { set.addProfile(" "); fail("no arg exception on whitespace"); } catch (IllegalArgumentException e) { } }