@Override
  public boolean hasRole(Role role) {
    return roles.containsKey(role);
  }
@Test
  void hasRole() {
    var core = new CustomerCore();
    core.addRole(Role.BORROWER);
    assertTrue(core.hasRole(Role.BORROWER));
    assertFalse(core.hasRole(Role.INVESTOR));
  }