// when getting the golf player
GolfPlayer ben = (GolfPlayer) session.get( GolfPlayer.class, 1L );
List<GolfCourse> playedCourses = ben.getPlayedCourses();
assertThat( playedCourses ).onProperty( "id" ).containsExactly( 1L );
transaction.commit();
session.close();
// then expect a findOne() call for the entity and one for the association with the configured read preference
verify( mockClient.getCollection( "GolfPlayer" ) ).findOne( any( DBObject.class ), any( DBObject.class ), eq( ReadPreference.secondaryPreferred() ) );
verify( mockClient.getCollection( "Associations" ) ).findOne( any( DBObject.class ), any( DBObject.class ), eq( ReadPreference.primaryPreferred() ) );