### Question:
ClientIdServiceImpl implements ClientIdService { @Override public String hash(UserDataRequest udr, String clientId) { return Hashing.sha1().newHasher() .putUnencodedChars(udr.getCredentials().getUser().getLoginAtDomain()) .putUnencodedChars(udr.getDevType()) .putUnencodedChars(clientId) .hash() .toString(); } @Inject @VisibleForTesting  ClientIdServiceImpl(); @Override String hash(UserDataRequest udr, String clientId);  }### Answer:
@Test public void testGetHashClientId() { String clientId = "123"; String expectedHashClientId = "429ceb34c4b664d63da6cee8fd40ce0d4b2532aa"; String hashClientId = new ClientIdServiceImpl().hash(udr, clientId); assertThat(hashClientId).isEqualTo(expectedHashClientId); }
@Test public void testGetHashClientIdOtherValue() { String clientId = "456"; String expectedHashClientId = "574394a967e7c3db37d5b74b649fba31f899c7a2"; String hashClientId = new ClientIdServiceImpl().hash(udr, clientId); assertThat(hashClientId).isEqualTo(expectedHashClientId); }