public void checkToString() {
    LOG.debug("Checking toString() ...");

    service = new PageRequestImpl(VALID_START_ROW, VALID_PAGE_SIZE);

    assertEquals(
        service.toString().substring(0, service.toString().indexOf('@')),
        "de.kaiserpfalzEdv.jee.persistence.impl.PageRequestImpl");
    assertEquals(
        service.toString().substring(service.toString().indexOf('[')),
        "[startRow=" + VALID_START_ROW + ",pageSize=" + VALID_PAGE_SIZE + "]");
  }
  public void checkToStringOrdered() {
    LOG.debug("Checking toString() with ordered request ...");

    service = new PageRequestImpl(VALID_START_ROW, VALID_PAGE_SIZE).orderBy("name");

    assertEquals(
        service.toString().substring(0, service.toString().indexOf('@')),
        "de.kaiserpfalzEdv.jee.persistence.impl.PageRequestImpl");
    assertEquals(
        service.toString().substring(service.toString().indexOf('[')),
        "[startRow="
            + VALID_START_ROW
            + ",pageSize="
            + VALID_PAGE_SIZE
            + ",ordered=[CRUDOrder[name|ASCENDING]]]");
  }