### Question:
OpBehaviorFloatSqrt extends UnaryOpBehavior { @Override public long evaluateUnary(int sizeout, int sizein, long in1) { FloatFormat format = FloatFormatFactory.getFloatFormat(sizein); return format.opSqrt(in1); } OpBehaviorFloatSqrt(); @Override long evaluateUnary(int sizeout, int sizein, long in1); @Override BigInteger evaluateUnary(int sizeout, int sizein, BigInteger in1);  }### Answer:
@Test public void testEvaluateBinaryLong() { OpBehaviorFloatSqrt op = new OpBehaviorFloatSqrt(); FloatFormat ff = FloatFormatFactory.getFloatFormat(8); long longbits = ff.getEncoding(2.0); longbits = op.evaluateUnary(8, 8, longbits); double d = ff.getHostFloat(longbits); Assert.assertEquals("1.414213562373095", Double.toString(d).substring(0, 17)); }
@Test public void testEvaluateBinaryBigInteger() { OpBehaviorFloatSqrt op = new OpBehaviorFloatSqrt(); FloatFormat ff = FloatFormatFactory.getFloatFormat(8); BigDecimal big = BigDecimal.valueOf(2.0); BigInteger encoding = ff.getEncoding(big); encoding = op.evaluateUnary(8, 8, encoding); BigDecimal result = ff.getHostFloat(encoding); Assert.assertEquals("1.414213562373095", result.toString()); }