@Test
	public void testEnum(){
		Method fromCodeMethod;
		try {
			for(Class<? extends StateProvinceEnum> clazz : enumToTest){
				assertTrue(clazz.isEnum());
				
				fromCodeMethod = clazz.getMethod("fromCode", String.class);
				//test that null is returned
				assertNull(fromCodeMethod.invoke(null,(Object)null));
				assertNull(fromCodeMethod.invoke(null,""));
				assertNull(fromCodeMethod.invoke(null,"-test-"));
				
				//test the first element
				StateProvinceEnum[] enumConstants = clazz.getEnumConstants();
				StateProvinceEnum val0 = enumConstants[0];
				assertEquals(val0, fromCodeMethod.invoke(null,val0.getCode().toLowerCase()));
			}
		} catch (Exception e) {
			e.printStackTrace();
			fail();
		}
	}