@Test
 public void testRemoveSuccess() {
   replayAll();
   String combinedFeedId = "1";
   testedClass.save(combinedFeedId);
   testedClass.remove(combinedFeedId);
   verifyAll();
 }
 @Test
 public void testSaveNoCombinedFeedEntity() {
   String combinedFeedId = "1";
   replayAll();
   testedClass.save(combinedFeedId);
   verifyAll();
 }
  @Test
  @SuppressWarnings({"unchecked", "ConstantConditions"})
  public void testSaveSuccess() {
    long refreshPeriod = 60;

    CombinedFeed feed =
        new CombinedFeed.CombinedFeedBuilder("1", "http://localhost")
            .refreshPeriod(refreshPeriod)
            .build();

    expect(
            scheduler.scheduleAtFixedRate(
                anyObject(Runnable.class), eq(0L), eq(60L), eq(TimeUnit.SECONDS)))
        .andReturn(scheduledFuture);

    expect(taskFactory.get(feed)).andReturn(new FeedDownloadTask(null, null, null));

    replayAll();
    testedClass.save(feed);
    verifyAll();
  }
 @Test
 public void testSaveNull() {
   replayAll();
   testedClass.save(null);
   verifyAll();
 }