protected void whenGetType(ExtendedAttributeDefinition extendedAttributeDefinition, int type) {

    when(extendedAttributeDefinition.getType()).thenReturn(type);
  }
  protected void whenGetOptionValues(
      ExtendedAttributeDefinition extendedAttributeDefinition, String[] optionValues) {

    when(extendedAttributeDefinition.getOptionValues()).thenReturn(optionValues);
  }
  protected void whenGetID(ExtendedAttributeDefinition extendedAttributeDefinition, String id) {

    when(extendedAttributeDefinition.getID()).thenReturn(id);
  }
  protected void whenGetOptionLabels(
      ExtendedAttributeDefinition extendedAttributeDefinition, String[] returnOptionLabels) {

    when(extendedAttributeDefinition.getOptionLabels()).thenReturn(returnOptionLabels);
  }
  protected void whenGetCardinality(
      ExtendedAttributeDefinition extendedAttributeDefinition, int cardinality) {

    when(extendedAttributeDefinition.getCardinality()).thenReturn(cardinality);
  }