}
@Test
public void updateAlbum() {
try {
Client client = new Client(new MySpaceProvider(),
new OAuth2LeggedScheme(MYSPACE_KEY, MYSPACE_SECRET, MYSPACE_ID));
Album album = new Album();
album.setId("myspace.com.album.81886");
album.setCaption("This is my updated caption");
album.setDescription("my description goes here");
Request request = AlbumsService.updateAlbum(album);
Response response = client.send(request);
assertTrue(response.getStatusLink() != null);
} catch (Exception e) {
fail("Exception occurred while processing request");
}