protected Short maxValue() {
return Short.MAX_VALUE;
}
public void testCustomApi() {
ShortSerializer serializer = createSerializer();
short val = 0;
assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
val = minValue();
assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
val = maxValue();
assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
val = anyValue();
assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
}