Used an older version of the Glassfish container, so that the test works. See https://community.jboss.org/message/582758