public String invest() {
    return String.format("Investor %s has invested %d dollars", name, amountToInvest);
  }
@Test
  void investTest() {
    var investorRole = new InvestorRole();
    investorRole.setName("test");
    investorRole.setAmountToInvest(10);
    assertEquals("Investor test has invested 10 dollars", investorRole.invest());
  }