@Test
public void testGetAgent() throws Exception {

  final Agent expectedAgent = allAgents.stream().findAny().get();
  final String expectedJson = toJson(expectedAgent).toJSONString();
  String result = given().pathParam("agentId", expectedAgent.getName()).expect().statusCode(SC_OK).when()
      .get(env.host("{agentId}")).asString();
  assertThat(result, SameJSONAs.sameJSONAs(expectedJson).allowingAnyArrayOrdering());
}