}
@Test
public void updateMediaItem() {
try {
Client client = new Client(new MySpaceProvider(),
new OAuth2LeggedScheme(MYSPACE_KEY, MYSPACE_SECRET, MYSPACE_ID));
MediaItem mediaItem = new MediaItem();
mediaItem.setId("myspace.com.mediaItem.image.646364");
mediaItem.setAlbumId("myspace.com.album.81886");
mediaItem.setUrl("http://www.google.com/intl/en_ALL/images/logo.gif");
mediaItem.setType("IMAGE");
mediaItem.setMimeType("image/gif");
Request request = MediaItemsService.updateMediaItem(mediaItem);
Response response = client.send(request);
assertTrue(response.getStatusLink() != null);
} catch (Exception e) {
fail("Exception occurred while processing request");
}