public int realCheckContains(String string,
                                 int offset,
                                 String subString, String check)
    {
        int index=-1;
        if ((string==null && subString==null)
            || (string!=null && (subString==null ||
                                 (index=string.indexOf(subString,offset))>=0)))
        {
          // do nothing
        }
        else
        {
            reportBuf.append(testCase+" : "+check+" - ");
            passed=false;
            reportBuf.append(fail);
            reportBuf.append('\n');
            reportBuf.append(spaces,0,testCase.length()+3);
            reportBuf.append('"' + subString + "\" not contained in \"" );
            
            if (offset<string.length())
                reportBuf.append(string.substring(offset));
            else
                reportBuf.append("string<offset:"+offset+":'"+string+"'");
            reportBuf.append("\"");
            if(log.isDebugEnabled())log.debug(check+" FAILED: "+reportBuf.toString());
            reportBuf.append('\n');
        }
        return index;
    }