public void includeTeamLocationsInModel() throws Exception {
teamController.showTeam(model);
@SuppressWarnings("unchecked")
List<TeamLocation> teamLocations = (List<TeamLocation>) model.get("teamLocations");
TeamLocation norman = teamLocations.get(0);
MatcherAssert.assertThat(norman.getName(), Matchers.equalTo("Norman"));
MatcherAssert.assertThat(norman.getLatitude(), Matchers.equalTo(10f));
MatcherAssert.assertThat(norman.getLongitude(), Matchers.equalTo(5f));
MatcherAssert.assertThat(norman.getMemberId(), Matchers.equalTo(123L));
TeamLocation patrick = teamLocations.get(1);
MatcherAssert.assertThat(patrick.getName(), Matchers.equalTo("Patrick"));
MatcherAssert.assertThat(patrick.getLatitude(), Matchers.equalTo(-5f));
MatcherAssert.assertThat(patrick.getLongitude(), Matchers.equalTo(15f));
MatcherAssert.assertThat(patrick.getMemberId(), Matchers.equalTo(321L));
}