ConsumerType extends AbstractHibernateObject<ConsumerType> { public boolean isType(ConsumerTypeEnum type) { return type != null && type.getLabel().equals(this.getLabel()); } ConsumerType();  ConsumerType(ConsumerTypeEnum type);  ConsumerType(String labelIn); String getId(); void setId(String id); String getLabel(); void setLabel(String labelIn); boolean isType(ConsumerTypeEnum type); @Override String toString(); @Override boolean equals(Object anObject); @Override int hashCode(); boolean isManifest(); void setManifest(boolean manifest); static final String DB_TABLE; }
@Test public void testIsType() { ConsumerType ct = new ConsumerType("system"); assertTrue(ct.isType(ConsumerType.ConsumerTypeEnum.SYSTEM)); }