@Before
  public void setup() throws Exception {
    _nodeService = _context.mock(NodeService.class);

    _serviceUtils = _context.mock(ServiceUtils.class);

    _publishingService = new PublishingServiceImpl();

    _publishingService.setNodeService(_nodeService);

    _publishingService.setServiceUtils(_serviceUtils);

    _publishingService.afterPropertiesSet();
  }
  @Test
  public void findPublishedDocuemntsQuery2() throws ParseException {
    String expectedQuery =
        "TYPE:\"vgr:document\" AND ASPECT:\"vgr:published\" AND vgr:dc\\.date\\.availablefrom:[MIN TO \"2013-04-10T12:00:00\"] AND (ISNULL:\"vgr:dc.date.availableto\" OR vgr:dc\\.date\\.availableto:[\"2013-04-10T12:00:00\" TO MAX]) AND ISNULL:\"vgr:pushed-for-publish\"";

    Date availableDate = parseDate("2013-04-10T12:00:00");

    String actualQuery = _publishingService.findPublishedDocumentsQuery(availableDate);

    assertEquals(expectedQuery, actualQuery);
  }