Fixes java code gen tests

This commit raises the AnonProfile from the web package to the api
package so that it can be used in testing where a user profile is
expected.
Merge branch 'emma' of github.com:intermine/intermine into emma