PostgreSQLUnspecifiedBinaryProtocolValue implements PostgreSQLBinaryProtocolValue { @Override public int getColumnLength(final Object value) { throw new UnsupportedOperationException("getColumnLength"); }  @Override int getColumnLength(final Object value); @Override Object read(final PostgreSQLPacketPayload payload); @Override void write(final PostgreSQLPacketPayload payload, final Object value);  }
@Test(expected = UnsupportedOperationException.class) public void assertGetColumnLength() { new PostgreSQLUnspecifiedBinaryProtocolValue().getColumnLength("val"); }