I used htmlunit only in adding several elytron-oidc-client integration tests.  It was sufficient for elytron's simple UI testing needs.

Elytron (project) uses htmlunit in its unit testing, so there's some
consistency there with this api.