@Test
public void testUnknownStatusCodes() {

    EbXMLAdhocQueryRequest ebXML = transformer.toEbXML(request);
    List<String> valueList = ebXML.getSlots(QueryParameter.DOC_ENTRY_STATUS.getSlotName()).get(0).getValueList();
    // no codes at all -- should fail
    valueList.clear();
    expectFailure(MISSING_REQUIRED_QUERY_PARAMETER, ebXML, iti18Profile);
    // only unknown codes -- should fail
    valueList.clear();
    valueList.add("('lol')");
    valueList.add("('foo')");
    expectFailure(MISSING_REQUIRED_QUERY_PARAMETER, ebXML, iti18Profile);
    // at least one code -- should pass
    valueList.set(0, "('bar')");
    valueList.set(1, "('Approved')");
    validator.validate(ebXML, iti18Profile);
}