Get the Fruit type in test method