public void test_Of_EEEE(){
  EnumSet<EnumWithInnerClass> enumSet=EnumSet.of(EnumWithInnerClass.a,EnumWithInnerClass.b,EnumWithInnerClass.c,EnumWithInnerClass.d);
  assertEquals("Size of enumSet should be 4",4,enumSet.size());
  assertTrue("enumSet should contain EnumWithSubclass.a:",enumSet.contains(EnumWithInnerClass.a));
  assertTrue("enumSet should contain EnumWithSubclass.d:",enumSet.contains(EnumWithInnerClass.d));
  try {
    EnumSet.of((EnumWithInnerClass)null,null,null,null);
    fail("Should throw NullPointerException");
  }
 catch (  NullPointerException npe) {
  }
  EnumSet<HugeEnumWithInnerClass> hugeEnumSet=EnumSet.of(HugeEnumWithInnerClass.a,HugeEnumWithInnerClass.b,HugeEnumWithInnerClass.c,HugeEnumWithInnerClass.d);
  assertEquals(4,hugeEnumSet.size());
  assertTrue(hugeEnumSet.contains(HugeEnumWithInnerClass.a));
  assertTrue(hugeEnumSet.contains(HugeEnumWithInnerClass.d));
  try {
    EnumSet.of((HugeEnumWithInnerClass)null,null,null,null);
    fail("Should throw NullPointerException");
  }
 catch (  NullPointerException npe) {
  }
}

public void test_Of_EEEE ( ) { EnumSet < EnumWithInnerClass > enumSet = EnumSet . of ( EnumWithInnerClass . a , EnumWithInnerClass . b , EnumWithInnerClass . c , EnumWithInnerClass . d ) ; assertEquals ( "Size of enumSet should be 4" , 4 , enumSet . size ( ) ) ; assertTrue ( "enumSet should contain EnumWithSubclass.a:" , enumSet . contains ( EnumWithInnerClass . a ) ) ; assertTrue ( "enumSet should contain EnumWithSubclass.d:" , enumSet . contains ( EnumWithInnerClass . d ) ) ; try { EnumSet . of ( ( EnumWithInnerClass ) null , null , null , null ) ; fail ( "Should throw NullPointerException" ) ; } catch ( NullPointerException npe ) { } EnumSet < HugeEnumWithInnerClass > hugeEnumSet = EnumSet . of ( HugeEnumWithInnerClass . a , HugeEnumWithInnerClass . b , HugeEnumWithInnerClass . c , HugeEnumWithInnerClass . d ) ; assertEquals ( 4 , hugeEnumSet . size ( ) ) ; assertTrue ( hugeEnumSet . contains ( HugeEnumWithInnerClass . a ) ) ; assertTrue ( hugeEnumSet . contains ( HugeEnumWithInnerClass . d ) ) ; try { EnumSet . of ( ( HugeEnumWithInnerClass ) null , null , null , null ) ; fail ( "Should throw NullPointerException" ) ; } catch ( NullPointerException npe ) { } }
java . util . enumset # of ( e , e , e , e )
