BinValue { public BinValue(final double normalizedValue) { this(null, normalizedValue); } BinValue(final double normalizedValue);  BinValue(final byte[] binId, final double normalizedValue); byte[] getBinId(); double getNormalizedValue();  }
@Test public void testBinValue() { final int binIdValue = 2; final byte[] binID = ByteBuffer.allocate(4).putInt(binIdValue).array(); final BinValue binValue = new BinValue(binID, BIN_VALUE); Assert.assertEquals(BIN_VALUE, binValue.getNormalizedValue(), DELTA); }