List<JobClient> clients = profile.getClients();
assertThat(clients.size(), is(2));
assertThat(clients.get(0), instanceOf(HttpJobClient.class));
assertThat(clients.get(1), instanceOf(HttpJobClient.class));
HttpJobClient c0 = (HttpJobClient) clients.get(0);
assertThat(c0.getBaseUri(), is("http://www.example.com/jobqueue/1/"));
assertThat(c0.getUser(), is(nullValue()));
HttpJobClient c1 = (HttpJobClient) clients.get(1);
assertThat(c1.getBaseUri(), is("http://www.example.com/jobqueue/2/"));
assertThat(c1.getUser(), is("u2"));
}