Windows { public static RecordWindow bitNotActive(Supplier<Boolean> supplier) { return new LambdaRecordWindow( record -> supplier.extract(record) != null && !supplier.extract(record), () -> new ArrayList<>(supplier.getChannelIdentifiers()) ); } private  Windows(); static RecordWindow bitActive(Supplier<Boolean> supplier); static RecordWindow bitNotActive(Supplier<Boolean> supplier); static RecordWindow valueEquals(Supplier<T> supplier, T expected); static RecordWindow valueNotEquals(Supplier<T> supplier, T notExpected);  }
@Test public void testBitNotActive() { RecordWindow recordWindow = Windows.bitNotActive(booleanChannel("flag")); RecordWindow clone = ClonerUtil.clone(recordWindow); innerTestBitNotActive(recordWindow); innerTestBitNotActive(clone); }