KlarnaOrderInquiryServiceRequest extends AbstractServiceRequest { public static KlarnaOrderInquiryServiceRequest createKlarnaOrderInquiryRequest(final MerchantInfo merch, final String orderCode) { if (merch == null || orderCode == null) { throw new IllegalArgumentException("WorldpayConfig, MerchantInfo and Order Code cannot be null"); } return new KlarnaOrderInquiryServiceRequest(merch, orderCode); } protected  KlarnaOrderInquiryServiceRequest(final MerchantInfo merchantInfo, final String orderCode); static KlarnaOrderInquiryServiceRequest createKlarnaOrderInquiryRequest(final MerchantInfo merch, final String orderCode);  }
@Test public void testOrderInquiry() { final KlarnaOrderInquiryServiceRequest request = KlarnaOrderInquiryServiceRequest.createKlarnaOrderInquiryRequest(MERCHANT_INFO, ORDER_CODE); assertEquals(MERCHANT_INFO, request.getMerchantInfo()); assertEquals(ORDER_CODE, request.getOrderCode()); }