public synchronized int getBalance() {
    int balance = 0;
    for (int account : accounts) {
      balance += account;
    }
    return balance;
  }
@Test
  void BalanceHaveToBeOK() {
    assertEquals(4000, bank.getBalance());
  }