// Get DfpUser from "~/dfp.properties".
DfpUser user = new DfpUser();
// Get the UserTeamAssociationService.
UserTeamAssociationServiceInterface userTeamAssociationService =
user.getService(DfpService.V201311.USER_TEAM_ASSOCIATION_SERVICE);
// Set the IDs of the user and team to get the association for.
Long userId = Long.parseLong("INSERT_USER_ID_HERE");
Long teamId = Long.parseLong("INSERT_TEAM_ID_HERE");
// Get the user team association.
UserTeamAssociation userTeamAssociation =
userTeamAssociationService.getUserTeamAssociation(teamId, userId);
if (userTeamAssociation != null) {
System.out.println("User team association between user with ID \""
+ userTeamAssociation.getUserId() + "\" and team with ID \""
+ userTeamAssociation.getTeamId() + "\" was found.");