Assert.assertEquals(0, definition.getSpecialConstants().size());
Assert.assertEquals(1, definition.getConstants().size());
Assert.assertEquals("en", definition.getConstants().get("ENGLISH"));
Assert.assertEquals(2, definition.getBuckets().size());
final TestBucket controlBucket = definition.getBuckets().get(0);
Assert.assertEquals("control", controlBucket.getName());
Assert.assertEquals(0, controlBucket.getValue());
Assert.assertNull(controlBucket.getDescription());
final TestBucket testBucket = definition.getBuckets().get(1);
Assert.assertEquals("test", testBucket.getName());
Assert.assertEquals(1, testBucket.getValue());
Assert.assertNull(testBucket.getDescription());
Assert.assertEquals(2, definition.getAllocations().size());
final Allocation englishAllocation = definition.getAllocations().get(0);
Assert.assertEquals("${lang == ENGLISH}", englishAllocation.getRule());
Assert.assertEquals(0.25, englishAllocation.getRanges().get(0).getLength(), 1E-16);