@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Credentials Credentials = (Credentials) o;
        return Objects.equals(username, Credentials.username)
                && Objects.equals(password, Credentials.password);
    }
@Test
    public void testEquals() {
        String username = "Prometheus";
        String password = "secret";

        Credentials credentials1 = new Credentials(username, password);
        Credentials credentials2 = new Credentials(username, password);

        assertTrue(credentials1.equals(credentials2));
    }