@Test public void testChargeCreate() throws StripeException { Charge createdCharge = Charge.create(defaultChargeParams); assertFalse(createdCharge.getRefunded()); assertEquals(1, createdCharge.getFeeDetails().size()); Fee fee = createdCharge.getFeeDetails().get(0); assertEquals("stripe_fee", fee.getType()); assertEquals(createdCharge.getFee(), fee.getAmount()); assertEquals(createdCharge.getCurrency(), fee.getCurrency()); assertEquals(null, fee.getApplication()); }