### Question:
RunningStatusGuard extends Guard { @Override public boolean isSatisfied() { return statusHolder.getStatus() == ScraperState.RUNNING; } @Inject  RunningStatusGuard(final Monitor monitor); @Override boolean isSatisfied();  }### Answer:
@Test public void isSatisfiedIfRunningStatus() throws Exception { expect(mockHolder.getStatus()).andReturn(ScraperState.RUNNING); EasyMockUnitils.replay(); final boolean result = guard.isSatisfied(); assertTrue("Unexpected result.", result); }
@Test public void isSatisfiedIfOtherStatus() throws Exception { expect(mockHolder.getStatus()).andReturn(ScraperState.PAUSED); EasyMockUnitils.replay(); final boolean result = guard.isSatisfied(); assertFalse("Unexpected result.", result); }