BitSetCoder extends AtomicCoder<BitSet> { public static BitSetCoder of() { return INSTANCE; } private  BitSetCoder(); static BitSetCoder of(); @Override void encode(BitSet value, OutputStream outStream); @Override void encode(BitSet value, OutputStream outStream, Context context); @Override BitSet decode(InputStream inStream); @Override BitSet decode(InputStream inStream, Context context); @Override void verifyDeterministic(); @Override boolean consistentWithEquals();  }
@Test public void testRegisterByteSizeObserver() throws Exception { CoderProperties.testByteCount( ByteArrayCoder.of(), Coder.Context.OUTER, new byte[][] {{0xa, 0xb, 0xc}}); CoderProperties.testByteCount( ByteArrayCoder.of(), Coder.Context.NESTED, new byte[][] {{0xa, 0xb, 0xc}, {}, {}, {0xd, 0xe}, {}}); }
@Test public void testEncodedTypeDescriptor() throws Exception { assertThat(TEST_CODER.getEncodedTypeDescriptor(), equalTo(TypeDescriptor.of(BitSet.class))); }