### Question:
YammerAdapter implements ApiAdapter<Yammer> { public void setConnectionValues(Yammer yammer, ConnectionValues values) { YammerProfile profile = yammer.userOperations().getUserProfile(); String providerUserId = String.valueOf(profile.getId()); values.setProviderUserId(providerUserId); values.setDisplayName(profile.getFullName()); values.setProfileUrl(profile.getUrl()); values.setImageUrl(profile.getMugshotUrl()); }  boolean test(Yammer yammer); void setConnectionValues(Yammer yammer, ConnectionValues values); UserProfile fetchUserProfile(Yammer yammer); void updateStatus(Yammer yammer, String message); static final String EMAIL_PRIMARY_TYPE; }### Answer:
@Test public void shouldSetConnectionValues() throws Exception { YammerProfile yammerProfile = createYammerProfile(null); ConnectionValues values = mock(ConnectionValues.class); UserOperations userOperations = mock(UserOperations.class); when(yammer.userOperations()).thenReturn(userOperations); when(userOperations.getUserProfile()).thenReturn(yammerProfile); apiAdapter.setConnectionValues(yammer, values); verify(values).setDisplayName("Ilya Yakubovich"); verify(values).setImageUrl("https: verify(values).setProfileUrl("https: verify(values).setProviderUserId("4022983"); }