public Long get( long key ) throws KettleValueException {
    int hashCode = generateHashCode( key );

    int indexPointer = indexFor( hashCode, index.length );
    LongHashIndexEntry check = index[indexPointer];

    while ( check != null ) {
      if ( check.hashCode == hashCode && check.equalsKey( key ) ) {
        return check.value;
      }
      check = check.nextEntry;
    }
    return null;
  }
@Test
  public void testGet() throws KettleValueException {
    LongHashIndex index = new LongHashIndex();
    index.put( 1L, 1L );
    assertThat( "Element has uncorrect value.", index.get( 1L ), equalTo( 1L ) );
  }