### Question:
PaymentMethodService { public static Page<PaymentMethod> list(final Context context, final String filter) throws NetLicensingException { final Map<String, Object> params = new HashMap<String, Object>(); if (StringUtils.isNotBlank(filter)) { params.put(Constants.FILTER, filter); } return NetLicensingService.getInstance().list(context, Constants.PaymentMethod.ENDPOINT_PATH, params, PaymentMethod.class); }  static PaymentMethod get(final Context context, final String number); static Page<PaymentMethod> list(final Context context, final String filter); static PaymentMethod update(final Context context, final String number, final PaymentMethod paymentMethod);  }### Answer:
@Test public void testList() throws Exception { final Page<PaymentMethod> paymentMethods = PaymentMethodService.list(context, null); assertNotNull(paymentMethods); assertTrue(paymentMethods.hasContent()); assertEquals(2, paymentMethods.getContent().size()); assertEquals("PAYPAL_SANDBOX", paymentMethods.getContent().get(0).getNumber()); assertEquals("PAYPAL", paymentMethods.getContent().get(1).getNumber()); assertEquals(true, paymentMethods.getContent().get(1).getActive()); }