// =====================================================================
// Test Expectations
// =====================================================================
MutableStateRegistry registry = factory.createStateRegistry();
// register the same factory multiple times.
StateIdentifier identifier1 = registry.add(instanceFactoryMock);
StateIdentifier identifier2 = registry.add(instanceFactoryMock);
assertNotSame("Identifiers must be different",
identifier1, identifier2);
}