### Question:
ConferenceApi { @ApiMethod( name = "getConference", path = "conference/{websafeConferenceKey}", httpMethod = HttpMethod.GET ) public Conference getConference( @Named("websafeConferenceKey") final String websafeConferenceKey) throws NotFoundException { Key<Conference> conferenceKey = Key.create(websafeConferenceKey); Conference conference = ofy().load().key(conferenceKey).now(); if (conference == null) { throw new NotFoundException("No Conference found with key: " + websafeConferenceKey); } return conference; }  @ApiMethod(name = "saveProfile", path = "profile", httpMethod = HttpMethod.POST) // The request that invokes this method should provide data that // conforms to the fields defined in ProfileForm // TODO 1 Pass the ProfileForm parameter // TODO 2 Pass the User parameter Profile saveProfile(final User user, ProfileForm profileForm); @ApiMethod(name = "getProfile", path = "profile", httpMethod = HttpMethod.GET) Profile getProfile(final User user); @ApiMethod(name = "createConference", path = "conference", httpMethod = HttpMethod.POST) Conference createConference(final User user, final ConferenceForm conferenceForm); @ApiMethod( name = "queryConferences_nofilters", path = "queryConferences_nofilters", httpMethod = HttpMethod.POST ) List<Conference> queryConferences_nofilters(); @ApiMethod( name = "queryConferences", path = "queryConferences", httpMethod = HttpMethod.POST ) List<Conference> queryConferences(ConferenceQueryForm conferenceQueryForm); List<Conference> filterPlayground(); @ApiMethod( name = "getConferencesCreated", path = "getConferencesCreated", httpMethod = HttpMethod.POST ) List<Conference> getConferencesCreated(final User user); @ApiMethod( name = "getConference", path = "conference/{websafeConferenceKey}", httpMethod = HttpMethod.GET ) Conference getConference(
            @Named("websafeConferenceKey") final String websafeConferenceKey); @ApiMethod( name = "registerForConference", path = "conference/{websafeConferenceKey}/registration", httpMethod = HttpMethod.POST ) WrappedBoolean registerForConference(final User user,
            @Named("websafeConferenceKey") final String websafeConferenceKey); @ApiMethod( name = "unregisterFromConference", path = "conference/{websafeConferenceKey}/registration", httpMethod = HttpMethod.DELETE ) WrappedBoolean unregisterFromConference(final User user,
                                            @Named("websafeConferenceKey")
                                            final String websafeConferenceKey); @ApiMethod( name = "getConferencesToAttend", path = "getConferencesToAttend", httpMethod = HttpMethod.GET ) Collection<Conference> getConferencesToAttend(final User user);  }### Answer:
@Test public void testGetConference() throws Exception { DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy"); Date startDate = dateFormat.parse("03/25/2014"); Date endDate = dateFormat.parse("03/26/2014"); List<String> topics = new ArrayList<>(); topics.add("Google"); topics.add("Cloud"); topics.add("Platform"); ConferenceForm conferenceForm = new ConferenceForm( NAME, DESCRIPTION, topics, CITY, startDate, endDate, CAP); Conference conference = conferenceApi.createConference(user, conferenceForm); conference = conferenceApi.getConference(conference.getWebsafeKey()); assertEquals(NAME, conference.getName()); assertEquals(DESCRIPTION, conference.getDescription()); assertEquals(topics, conference.getTopics()); assertEquals(USER_ID, conference.getOrganizerUserId()); assertEquals(CITY, conference.getCity()); assertEquals(startDate, conference.getStartDate()); assertEquals(endDate, conference.getEndDate()); assertEquals(CAP, conference.getMaxAttendees()); assertEquals(CAP, conference.getSeatsAvailable()); assertEquals(MONTH, conference.getMonth()); }