*/
@Test(groups = "unit", testName = "EventDonePredicateTest")
public class EventDonePredicateTest {
public void testEventProgress() {
EventApi eventApi = EasyMock.createMock(EventApi.class);
DigitalOceanApi api = EasyMock.createMock(DigitalOceanApi.class);
expect(eventApi.get(1)).andReturn(event(Status.DONE));
expect(eventApi.get(2)).andReturn(event(Status.PENDING));
expect(api.getEventApi()).andReturn(eventApi).times(2);
replay(eventApi, api);
EventDonePredicate predicate = new EventDonePredicate(api);
assertTrue(predicate.apply(1));