@Test public void binaryStringMapingShouldFail() throws HiveException {

    ObjectInspector valueOI0 = PrimitiveObjectInspectorFactory.writableStringObjectInspector;
    ObjectInspector[] initArgs = {valueOI0};

    udf.initialize(initArgs);
    DeferredObject args;
    DeferredObject[] evalArgs;

    args = new DeferredJavaObject(new Text("1 0 0 0 0 0 0 0 0 0"));
    evalArgs = new DeferredObject[] {args};
    runAndVerifyNotTrue(asList(p1), evalArgs);

    args = new DeferredJavaObject(new Text("1 1 0 0 0 0 0 0 0 0"));
    evalArgs = new DeferredObject[] {args};
    runAndVerifyNotTrue(asList(p0, p5), evalArgs);

  }
This test a test for udf GenericUDFStringToPrivilege.
ql/src/test/org/apache/hadoop/hive/ql/udf/generic/TestUDFSplitMapPrivs.java