public static byte[] encode(Predicate predicate) {
        Objects.requireNonNull(predicate, "predicate");
        Slime slime = new Slime();
        encode(predicate, slime.setObject());
        return com.yahoo.slime.BinaryFormat.encode(slime);
    }
@Test
    void requireThatUnknownNodeThrows() {
        try {
            BinaryFormat.encode(SimplePredicates.newString("foo"));
            fail();
        } catch (UnsupportedOperationException e) {

        }
    }