### Question:
AbstractGroups { @Deprecated protected boolean isBucketActive(final String testName, final int value) { return getActiveBucket(testName) .filter(testBucket -> value == testBucket.getValue()) .isPresent(); } protected  AbstractGroups(final ProctorResult proctorResult); String toLongString(); @Override @Deprecated String toString(); String toLoggingString(); @Deprecated final StringBuilder buildTestGroupString(); final void appendTestGroups(final StringBuilder sb); void appendTestGroups(final StringBuilder sb, final char separator); final Map<String, Integer> getJavaScriptConfig(); @Deprecated List<List<Object>> getJavaScriptConfig(final E[] tests); ProctorResult getAsProctorResult(); ProctorResult getRawProctorResult(); @Deprecated ProctorResult getProctorResult();  }### Answer:
@Test public void testIsBucketActive() { assertFalse(sampleGroups.isBucketActive(CONTROL_SELECTED_TEST.getName(), -1)); assertTrue(sampleGroups.isBucketActive(CONTROL_SELECTED_TEST.getName(), 0)); assertFalse(sampleGroups.isBucketActive(CONTROL_SELECTED_TEST.getName(), 1)); assertFalse(sampleGroups.isBucketActive(GROUP1_SELECTED_TEST.getName(), -1)); assertFalse(sampleGroups.isBucketActive(GROUP1_SELECTED_TEST.getName(), 0)); assertTrue(sampleGroups.isBucketActive(GROUP1_SELECTED_TEST.getName(), 1)); assertFalse(sampleGroups.isBucketActive(CONTROL_SELECTED_TEST.getName(), -1, 42)); assertTrue(sampleGroups.isBucketActive(CONTROL_SELECTED_TEST.getName(), 0, 42)); assertFalse(sampleGroups.isBucketActive("notexist", -1)); assertTrue(sampleGroups.isBucketActive("notexist", 1, 1)); assertFalse(sampleGroups.isBucketActive("notexist", 1, 2)); assertFalse(emptyGroup.isBucketActive("notexist", -1)); assertTrue(emptyGroup.isBucketActive("notexist", 1, 1)); assertFalse(emptyGroup.isBucketActive("notexist", 1, 2)); }