public void test_CompartmentType() { CompartmentType ct = new CompartmentType(2,4); assertEquals( false, (ct.hasRequiredAttributes()) ); ct.setId("c"); assertEquals( true, ct.hasRequiredAttributes() ); ct = null; }