@Test
public void buildAuth() {

  ElasticsearchDependenciesJob job =
      ElasticsearchDependenciesJob.builder().username("foo").password("bar").build();
  assertThat(job.conf.get("es.net.http.auth.user")).isEqualTo("foo");
  assertThat(job.conf.get("es.net.http.auth.pass")).isEqualTo("bar");
}