// grab the first component
final Iterable<Object> allowedValuesForComponents = issueType.getField(IssueFieldId.COMPONENTS_FIELD).getAllowedValues();
assertNotNull(allowedValuesForComponents);
assertTrue(allowedValuesForComponents.iterator().hasNext());
final BasicComponent component = (BasicComponent) allowedValuesForComponents.iterator().next();
// grab the first priority
final Iterable<Object> allowedValuesForPriority = issueType.getField(IssueFieldId.PRIORITY_FIELD).getAllowedValues();
assertNotNull(allowedValuesForPriority);
assertTrue(allowedValuesForPriority.iterator().hasNext());