public void testField() {
this.test(ReplicationGranularity.FIELD, CoarseSessionAttributeStorage.class);
}
private void test(ReplicationGranularity granularity, Class<? extends SessionAttributeStorage<?>> expectedClass) {
SessionAttributeMarshaller marshaller = mock(SessionAttributeMarshaller.class);
SessionAttributeStorageFactory factory = new SessionAttributeStorageFactoryImpl();
try {
SessionAttributeStorage<?> storage = factory.createStorage(granularity, marshaller);