I think this test should not run always, it's an online test because you need a running geoserver to pass it. Please, introduce some environment variable to be set to execute the test (it should be disabled by default).