### Question:
OrganizationEntity extends StatefulEntity<State> implements Organization { @Override public Completes<OrganizationState> renameTo(final String name) { return apply(state.withName(name), new OrganizationRenamed(state.organizationId, name), () -> state); } OrganizationEntity(final Id organizationId); @Override Completes<OrganizationState> defineWith(final String name, final String description); @Override Completes<OrganizationState> enable(); @Override Completes<OrganizationState> disable(); @Override Completes<OrganizationState> describeAs(final String description); @Override Completes<OrganizationState> renameTo(final String name);  }### Answer:
@Test public void testThatOrganizationIsRenamed() { final OrganizationState state = Organization.statefulWith(grid, DefaultName, DefaultDescription) .andThenTo(s -> grid.actorOf(Organization.class, address(s.id()))) .andThenTo(organization -> organization.renameTo(DefaultName + 1)) .await(); Assert.assertEquals(DefaultName + 1, state.name()); }