### Question:
AbstractGroups { public String toLongString() { if (isEmpty()) { return ""; } final Map<String, TestBucket> buckets = proctorResult.getBuckets(); final StringBuilder sb = new StringBuilder(buckets.size() * 10); for (final String testName : buckets.keySet()) { sb.append(testName).append(TESTNAME_BUCKET_CONNECTOR).append(getActiveBucket(testName) .map(TestBucket::getName).orElse("unknown")) .append(GROUPS_SEPARATOR); } return sb.deleteCharAt(sb.length() - 1) .toString(); } 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 testToLongString() { assertThat(emptyGroup.toLongString()).isEmpty(); assertThat(sampleGroups.toLongString()).isEqualTo("abtst-group1,bgtst-control,btntst-inactive,groupwithfallbacktst-group1,no_definition_tst-group1"); }