private void assertSubjectEquals(SubjectCredentials expected, SubjectCredentials found) {
    assertThat(found).isNotNull();
    assertThat(found).isEqualTo(expected);
    assertThat(found.getName()).isEqualTo(expected.getName());
    assertThat(found.getAuthenticationType()).isEqualTo(expected.getAuthenticationType());
    assertThat(found.getPassword()).isEqualTo(expected.getPassword());
    assertThat(found.isEnabled()).isEqualTo(expected.isEnabled());

    assertThat(expected.getGroups()).isEqualTo(found.getGroups());
    Asserts.assertCreatedTimestamps(expected, found);
  }