### Question:
PhotosetsInterface { public Photoset getInfo(String photosetId) throws FlickrException, IOException, JSONException { List<Parameter> parameters = new ArrayList<Parameter>(); parameters.add(new Parameter("method", METHOD_GET_INFO)); boolean signed = OAuthUtils.hasSigned(); if (signed) { parameters.add(new Parameter( OAuthInterface.PARAM_OAUTH_CONSUMER_KEY, apiKey)); } else { parameters.add(new Parameter("api_key", apiKey)); } parameters.add(new Parameter("photoset_id", photosetId)); if (signed) { OAuthUtils.addOAuthToken(parameters); } Response response = transportAPI .get(transportAPI.getPath(), parameters); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } JSONObject photosetElement = response.getData().getJSONObject( "photoset"); return parsePhotoset(photosetElement); } PhotosetsInterface(String apiKey, String sharedSecret,
			Transport transportAPI); void addPhoto(String photosetId, String photoId); Photoset create(String title, String description,
			String primaryPhotoId); void delete(String photosetId); void editMeta(String photosetId, String title, String description); void editPhotos(String photosetId, String primaryPhotoId,
			String[] photoIds); PhotoContext getContext(String photoId, String photosetId); Photoset getInfo(String photosetId); Photosets getList(String userId); Photosets getList(String userId, int perPage, int page); Photoset getPhotos(String photosetId, Set<String> extras,
			int privacyFilter, int perPage, int page); Photoset getPhotos(String photosetId, int perPage, int page); void orderSets(String[] photosetIds); void removePhoto(String photosetId, String photoId); static final String METHOD_ADD_PHOTO; static final String METHOD_CREATE; static final String METHOD_DELETE; static final String METHOD_EDIT_META; static final String METHOD_EDIT_PHOTOS; static final String METHOD_GET_CONTEXT; static final String METHOD_GET_INFO; static final String METHOD_GET_LIST; static final String METHOD_GET_PHOTOS; static final String METHOD_ORDER_SETS; static final String METHOD_REMOVE_PHOTO; }### Answer:
@Test public void testGetInfo() throws FlickrException, IOException, JSONException { Photoset photoset = f.getPhotosetsInterface().getInfo(PHOTOSET_ID); assertNotNull(photoset); assertEquals(PHOTOSET_ID, photoset.getId()); }
@Test public void testGetInfoAuth() throws FlickrException, IOException, JSONException { Photoset photoset = f.getPhotosetsInterface().getInfo(CHARLES_PHOTO_SET_ID); assertNotNull(photoset); assertEquals(CHARLES_PHOTO_SET_ID, photoset.getId()); assertTrue( photoset.getPhotoCount() > 50 ); }