BooleanConversions { @Nonnull static Double booleanToDouble(@Nonnull Boolean b) { return b ? 1.0 : 0.0; } private  BooleanConversions();   }
@Test public void testBooleanToDouble() { assertEquals(booleanToDouble(false), 0.0); assertEquals(booleanToDouble(true), 1.0); }