### Question:
DefaultProfileSet extends LinkedHashMap implements ProfileSet { public boolean isMember(String profile) { if (profile == null) { throw new IllegalArgumentException( "null 'profile' arg in method call."); } if(profile.equalsIgnoreCase(baseProfile)) { return true; } else { return containsKey(profile.trim()); } } 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 testIsMember_exceptions() { DefaultProfileSet set = new DefaultProfileSet("baseProfile"); try { set.isMember(null); fail("no arg exception on null"); } catch (IllegalArgumentException e) { } }
@Test public void testIsMember() { DefaultProfileSet set = new DefaultProfileSet("baseProfile"); assertFalse(set.isMember("xxx")); set.addProfile("xxx"); assertTrue(set.isMember("xxx")); assertFalse(set.isMember("yyy")); set.addProfile(" YYY"); assertTrue(set.isMember("YYY")); assertTrue(set.isMember(" YYY")); assertTrue(set.isMember("YYY ")); }