Unit tests except method with a generic.