### Question:
ProctorJavascriptPayloadBuilder { public final <E extends Test> Map<String, List<Object>> buildObfuscatedJavaScriptConfigMap(final E... tests) { final ImmutableMap.Builder<String, List<Object>> result = ImmutableMap.builder(); for (final Test test : tests) { final List<Object> testValueAndPayload = Arrays.asList( testGroups.getValue(test.getName(), test.getFallbackValue()), testGroups.getPayload(test.getName(), test.getFallbackValue()).fetchAValue()); final String hashedName = testNameObfuscator.obfuscateTestName(test.getName()); result.put(hashedName, testValueAndPayload); } return result.build(); } ProctorJavascriptPayloadBuilder(final AbstractGroups testGroups, final NameObfuscator testNameObfuscator);  ProctorJavascriptPayloadBuilder(final AbstractGroups testGroups); @SuppressWarnings("deprecation") final List<List<Object>> buildAlphabetizedListJavascriptConfig(final E... tests); final Map<String, List<Object>> buildObfuscatedJavaScriptConfigMap(final E... tests);  }### Answer:
@Test public void buildObfuscatedJavaScriptConfigMap() { final ProctorJavascriptPayloadBuilder groupsBuilder = new ProctorJavascriptPayloadBuilder(groups); final FakeTest[] stubTests = { new FakeTest("notexist", 77), new FakeTest(CONTROL_SELECTED_TEST.getName(), 43), new FakeTest(GROUP1_SELECTED_TEST.getName(), 44), new FakeTest(NO_BUCKETS_WITH_FALLBACK_TEST.getName(), FALLBACK_TEST_BUCKET.getValue())}; assertThat(groupsBuilder.buildObfuscatedJavaScriptConfigMap(stubTests)) .isEqualTo(new ImmutableMap.Builder<>() .put(NOTEXIST_NAME_HASH, asList(77, null)) .put(CONTROL_NAME_HASH, asList(0, CONTROL_BUCKET_WITH_PAYLOAD.getPayload().getStringValue())) .put(ACTIVE_NAME_HASH, asList(1, GROUP_1_BUCKET_WITH_PAYLOAD.getPayload().getStringValue())) .put(FALLBACK_NAME_HASH, asList(FALLBACK_TEST_BUCKET.getValue(), FALLBACK_TEST_BUCKET.getPayload().getStringValue())) .build() ); }