### Question:
AbstractGroups { public final Map<String, Integer> getJavaScriptConfig() { return proctorResult.getBuckets().keySet().stream() .map(testName -> new AbstractMap.SimpleEntry<>(testName, getValue(testName, -1))) .filter(e -> e.getValue() >= 0) .collect(Collectors.toMap(Entry::getKey, Entry::getValue)); } 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 testGetJavaScriptConfig() { assertThat(emptyGroup.getJavaScriptConfig()) .hasSize(0); assertThat(sampleGroups.getJavaScriptConfig()) .hasSize(4) .containsEntry(GROUP1_SELECTED_TEST.getName(), 1) .containsEntry(CONTROL_SELECTED_TEST.getName(), 0) .containsEntry(GROUP_WITH_FALLBACK_TEST.getName(), 2) .containsEntry(MISSING_DEFINITION_TEST.getName(), 2); }