Device extends ByteValue { public static Device of(byte... values) { return new Device(values); } private  Device(byte... values); static Device of(byte... values); static Device of(ByteBuf byteBuf); static Device of(String value); static Device of(String value, Charset charset); @Override long getCalculatedLength(); String getAsString(); String getAsString(Charset charset); @Override String toString(); static final int NUM_BYTES; }
@Test(expected = PlcRuntimeException.class) public void overflow() { Device.of("asdasdasdsadssdasdasddsaasdasddsasadsadsadsdasadsadsdsadasd"); }