BoolScale extends CategoricalScale { public ScaleCategory getFalseCategory() { return falseCategory; } BoolScale(ScaleCategory trueCategory, ScaleCategory falseCategory); boolean isTrue(ScaleCategory category); ScaleCategory getTrueCategory(); ScaleCategory getFalseCategory();  }
@Test public void testBasicConstruction() throws Exception { ScaleCategory trueCategory = new ScaleCategory("True category", 1, 1, "on", 1); ScaleCategory falseCategory = new ScaleCategory("False category", 0, 0, "on", 0); BoolScale scale = new BoolScale(trueCategory, falseCategory); ScaleCategory category = scale.scaleRawValue(0); Assert.assertEquals(scale.getFalseCategory(), category); }