BooleanConversions { @Nonnull static Float booleanToFloat(@Nonnull Boolean b) { return b ? 1.0f : 0.0f; } private  BooleanConversions();   }
@Test public void testBooleanToFloat() { assertEquals(booleanToFloat(false), 0.0f); assertEquals(booleanToFloat(true), 1.0f); }