@Test
public void testFindByStatus() throws Exception {

  RequestScheduleEntity scheduleEntity = createScheduleEntity();
  List<RequestScheduleEntity> scheduleEntities = requestScheduleDAO
    .findByStatus("SCHEDULED");
  Assert.assertNotNull(scheduleEntities);
  Assert.assertEquals(scheduleEntity, scheduleEntities.get(0));
}