htmlunit only used during tests.