@AfterClass(alwaysRun = true)
 protected void tearDown() {
   if (guest != null) {
     adapter.destroyNode(guest.getNode().id() + "");
   }
   super.tearDown();
 }
  public void testListHardwareProfiles() {
    Iterable<Hardware> profiles = adapter.listHardwareProfiles();
    assertFalse(Iterables.isEmpty(profiles));

    for (Hardware profile : profiles) {
      assertNotNull(profile);
    }
  }
  public void testCreateNodeWithGroupEncodedIntoNameThenStoreCredentials() {
    String group = "foo";
    String name = "container" + new Random().nextInt();

    Template template = templateBuilder.imageId(defaultImage.id()).build();

    DockerTemplateOptions options = template.getOptions().as(DockerTemplateOptions.class);
    options.env(ImmutableList.of("ROOT_PASSWORD=password"));
    guest = adapter.createNodeWithGroupEncodedIntoName(group, name, template);
    assertEquals(guest.getNodeId(), guest.getNode().id());
  }