}
@Test
public void testMultipleTypes() {
{
final Identifiers identifiers = new Identifiers(ImmutableMap.<TestType, String>builder()
.put(TestType.ANONYMOUS_USER, SPECIFICATION_MATRIX)
.put(TestType.AUTHENTICATED_USER, SPECIFICATION_MATRIX)
.put(TestType.PAGE, SPECIFICATION_MATRIX)
.build());
final ProctorResult result = manager.determineBuckets(identifiers, /* loggedin */ true , /* country */ "FR", /* account */ new Account(10));
assertEquals("kluj:kloo2,map_payload:inactive-1,oop_poop:test1,payloaded:inactive-1,payloaded_verified:inactive-1,pimple:control0", calcBuckets(result));
}
{
final ImmutableMap<TestType, String> idMap = ImmutableMap.<TestType, String>builder()
.put(TestType.EMAIL_ADDRESS, SPECIFICATION_MATRIX)
.put(TestType.AUTHENTICATED_USER, SPECIFICATION_MATRIX)
.put(TestType.PAGE, SPECIFICATION_MATRIX)
.build();
final Identifiers identifiers = new Identifiers(idMap, true);
final ProctorResult result = manager.determineBuckets(identifiers, /* loggedin */ true , /* country */ "FR", /* account */ new Account(10));
assertEquals(result.getBuckets().get("pimple").getValue(), 0);
assertNotNull(result.getBuckets().get("bubble").getValue());
assertEquals(result.getBuckets().get("dubblez").getValue(), 2);