### Question:
AbstractGroups { protected int getValue(final String testName, final int defaultValue) { return getActiveBucket(testName) .map(TestBucket::getValue) .orElse(defaultValue); } 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 testGetValue() { assertThat(sampleGroups.getValue(CONTROL_SELECTED_TEST.getName(), 42)).isEqualTo(0); assertThat(sampleGroups.getValue(GROUP1_SELECTED_TEST.getName(), 42)).isEqualTo(1); assertThat(sampleGroups.getValue("notexist", 42)).isEqualTo(42); assertThat(emptyGroup.getValue("notexist", 42)).isEqualTo(42); }