### Question:
AbstractGroups { @Deprecated @Nonnull protected Payload getPayload(final String testName) { return getActiveBucket(testName) .map(TestBucket::getPayload) .orElse(Payload.EMPTY_PAYLOAD); } 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 testGetPayload() { assertThat(sampleGroups.getPayload(INACTIVE_SELECTED_TEST.getName())).isEqualTo(Payload.EMPTY_PAYLOAD); assertThat(sampleGroups.getPayload(GROUP1_SELECTED_TEST.getName())).isEqualTo(GROUP_1_BUCKET_WITH_PAYLOAD.getPayload()); assertThat(sampleGroups.getPayload(CONTROL_SELECTED_TEST.getName())).isEqualTo(CONTROL_BUCKET_WITH_PAYLOAD.getPayload()); assertThat(sampleGroups.getPayload(GROUP1_SELECTED_TEST.getName(), FALLBACK_BUCKET)).isEqualTo(GROUP_1_BUCKET_WITH_PAYLOAD.getPayload()); assertThat(sampleGroups.getPayload(CONTROL_SELECTED_TEST.getName(), FALLBACK_BUCKET)).isEqualTo(CONTROL_BUCKET_WITH_PAYLOAD.getPayload()); assertThat(sampleGroups.getPayload(INACTIVE_SELECTED_TEST.getName(), FALLBACK_BUCKET)).isEqualTo(Payload.EMPTY_PAYLOAD); assertThat(sampleGroups.getPayload(GROUP_WITH_FALLBACK_TEST.getName(), FALLBACK_BUCKET)).isEqualTo(Payload.EMPTY_PAYLOAD); assertThat(sampleGroups.getPayload(NO_BUCKETS_WITH_FALLBACK_TEST.getName(), FALLBACK_BUCKET)).isEqualTo(FALLBACK_TEST_BUCKET.getPayload()); assertThat(sampleGroups.getPayload(NO_BUCKETS_WITH_FALLBACK_TEST.getName(), FALLBACK_NOPAYLOAD_BUCKET)).isEqualTo(Payload.EMPTY_PAYLOAD); assertThat(sampleGroups.getPayload("notexist")).isEqualTo(Payload.EMPTY_PAYLOAD); assertThat(emptyGroup.getPayload("notexist")).isEqualTo(Payload.EMPTY_PAYLOAD); }