@Test public void changeName() throws Exception { withUpdateableShippingMethod(client(), shippingMethod -> { final String newName = randomString(); assertThat(shippingMethod.getName()).isNotEqualTo(newName); final ShippingMethodUpdateCommand cmd = ShippingMethodUpdateCommand.of(shippingMethod, ChangeName.of(newName)); final ShippingMethod updatedShippingMethod = client().executeBlocking(cmd); assertThat(updatedShippingMethod.getName()).isEqualTo(newName); return updatedShippingMethod; }); }