DefaultServiceResponseTransformerHelper implements ServiceResponseTransformerHelper { @Override public UpdateTokenReply buildUpdateTokenReply(final UpdateTokenReceived intUpdateTokenReceived) { final UpdateTokenReply updateTokenReply = new UpdateTokenReply(); updateTokenReply.setPaymentTokenId(intUpdateTokenReceived.getPaymentTokenID()); return updateTokenReply; }  @Override boolean checkForError(final ServiceResponse response, final Reply reply); @Override PaymentReply buildPaymentReply(final Payment intPayment); @Override UpdateTokenReply buildUpdateTokenReply(final UpdateTokenReceived intUpdateTokenReceived); @Override DeleteTokenReply buildDeleteTokenReply(final DeleteTokenReceived intDeleteTokenReceived); @Override TokenReply buildTokenReply(final Token intToken); @Override WebformRefundReply buildWebformRefundReply(final ShopperWebformRefundDetails intShopperWebformRefundDetails); @Override JournalReply buildJournalReply(final Journal intJournal);  }
@Test public void shouldBuildUpdateTokenReply() { when(updateTokenReceivedMock.getPaymentTokenID()).thenReturn(PAYMENT_TOKEN_ID); final UpdateTokenReply result = testObj.buildUpdateTokenReply(updateTokenReceivedMock); assertEquals(PAYMENT_TOKEN_ID, result.getPaymentTokenId()); }