public void testNoEmailCancelItems() {
OrderCommands tester = new CommandPosterImplTester(
apiContext(), "googleOrderNumber", false, commands);
tester.itemCommands("itemId").cancelItems("because");
assertEquals(1, commands.size());
CancelItemsRequest cancelItemsRequest =
(CancelItemsRequest) commands.get(0).getValue();
assertEquals(Boolean.FALSE, cancelItemsRequest.isSendEmail());
assertEquals("googleOrderNumber", cancelItemsRequest.getGoogleOrderNumber());
assertEquals("because", cancelItemsRequest.getReason());
assertEquals(1, cancelItemsRequest.getItemIds().getItemId().size());
assertEquals("itemId", cancelItemsRequest.getItemIds().getItemId().get(0).getMerchantItemId());
}