// given
IdSourceKeyMetadata keyMetadata = IdSourceKeyMetadata.forTable( "Hibernate_Sequences", "sequence_name", "next_val" );
IdSourceKey key = IdSourceKey.forTable( keyMetadata, "Foo_Sequence" );
// when
Number value = dialect1.nextValue( new NextValueRequest( key, 1, 1 ) );
assertThat( value ).isEqualTo( 1L );
// then
value = dialect2.nextValue( new NextValueRequest( key, 1, 1 ) );
assertThat( value ).isEqualTo( 2L );
}