@Test(dependsOnMethods = {"createSource"})

public void updateSource()
{
   int sourceId = 1;
   String expectedUrl = "https://foo-bar.net";
   Source source = service.getSource(sourceId);
   source.setUrl("https://foo-bar.net");
   Assert.assertTrue(service.updateSource(source));
   source = service.getSource(sourceId);
   Assert.assertEquals(source.getUrl(), expectedUrl);
}