}
@Test
public void testLocalIndexCalculation()
{
final AbstractCell< FloatArray > cell = new DefaultCell< FloatArray >( new FloatArray( 1 ), new int[] {20, 8, 10}, new long[] { 0, 9876543210l, 222 } , new Fraction( 2, 1 ) );
final long[][] position = { {3, 4, 5}, {12, 0, 3}, {3, 2, 0} };
final int[] expectedIndex = { 883, 492, 43 };
for ( int i = 0; i < position.length; ++i )
{
assertTrue( cell.localPositionToIndex( position[ i ] ) == expectedIndex[ i ] );