public GearAssert assertGear(String id) {
    assertNotNull(id);

    for (IGear gear : gearGroup.getGears()) {
      if (id.equals(gear.getId())) {
        return new GearAssert(gear);
      }
    }
    fail("gear group " + gearGroup.getName() + " does not contain a gear with id " + id);
    return null;
  }
 public GearAssert hasId() {
   assertThat(gear.getId()).isNotNull().isNotEmpty();
   return this;
 }
    public GearGroupAssert hasSshUrl(String sshUrl) {
      assertNotNull(sshUrl);

      assertEquals(sshUrl, gear.getSshUrl());
      return GearGroupAssert.this;
    }
    public GearGroupAssert inState(GearState state) {
      assertNotNull(state);

      assertEquals(state, gear.getState());
      return GearGroupAssert.this;
    }
 public GearGroupAssert hasState() {
   assertThat(gear.getState()).isInstanceOf(GearState.class);
   return GearGroupAssert.this;
 }
 public GearAssert hasId(String id) {
   assertNotNull(id);
   assertEquals(id, gear.getId());
   return this;
 }