RileyLinkUtil { public static int computeNewSize(final int inputSize) { return (int) Math.ceil((inputSize * 3.0) / 2.0); }  static int computeNewSize(final int inputSize); static byte[] composeRFStream(final byte[] input); static int composeRFBytes(final byte b); static final byte[] CodeSymbols; }
@Test public void testComputeNewSize() throws Exception { assertEquals(2, RileyLinkUtil.computeNewSize(1)); assertEquals(3, RileyLinkUtil.computeNewSize(2)); assertEquals(5, RileyLinkUtil.computeNewSize(3)); assertEquals(6, RileyLinkUtil.computeNewSize(4)); assertEquals(8, RileyLinkUtil.computeNewSize(5)); }