static boolean contains(Object enumValue,Object[] expectedValues){
  for (  final Object expected : expectedValues) {
    if (enumValue.equals(expected)) {
      return true;
    }
  }
  return false;
}

static boolean contains ( Object enumValue , Object [ ] expectedValues ) { for ( final Object expected : expectedValues ) { if ( enumValue . equals ( expected ) ) { return true ; } } return false ; }
does expectedvalues contain enumvalue . this is just a linear search .
