private void createHosts(TestEnvironment cloudStoreEnvironment,List<HostService.State> hosts) throws Throwable {
  for (  HostService.State host : hosts) {
    Operation result=cloudStoreEnvironment.sendPostAndWait(HostServiceFactory.SELF_LINK,host);
    assertThat(result.getStatusCode(),equalTo(200));
  }
}

private void createHosts ( TestEnvironment cloudStoreEnvironment , List < HostService . State > hosts ) throws Throwable { for ( HostService . State host : hosts ) { Operation result = cloudStoreEnvironment . sendPostAndWait ( HostServiceFactory . SELF_LINK , host ) ; assertThat ( result . getStatusCode ( ) , equalTo ( 200 ) ) ; } }
given the host descriptions created by createhostdescriptions , post them to cloudstore .
