MySQLBinlogProtocolValueFactory { public static MySQLBinlogProtocolValue getBinlogProtocolValue(final MySQLColumnType columnType) { Preconditions.checkArgument(BINLOG_PROTOCOL_VALUES.containsKey(columnType), "Cannot find MySQL type '%s' in column type when process binlog protocol value", columnType); return BINLOG_PROTOCOL_VALUES.get(columnType); }  static MySQLBinlogProtocolValue getBinlogProtocolValue(final MySQLColumnType columnType);  }
@Test public void assertGetBinlogProtocolValue() { assertThat(MySQLBinlogProtocolValueFactory.getBinlogProtocolValue(MySQLColumnType.MYSQL_TYPE_TINY), instanceOf(MySQLTinyBinlogProtocolValue.class)); }
@Test(expected = IllegalArgumentException.class) public void assertGetBinlogProtocolValueFailure() { MySQLBinlogProtocolValueFactory.getBinlogProtocolValue(MySQLColumnType.MYSQL_TYPE_GEOMETRY); }