Learning Jenerics using tests