@Test public void testAddRemoveTimedPayment() { // Test addTimedPayment and check if it exists after function call testAccount.addTimedPayment("Test", 1, 1, new Money(100, SEK), SweBank, "Alice"); assertTrue(testAccount.timedPaymentExists("Test")); // Try to remove timed payment and check if it is removed testAccount.removeTimedPayment("Test"); assertFalse(testAccount.timedPaymentExists("Test")); }