@Test
public void testCostForLevelingToLevel()
        throws Exception {

    MobilityModule module = MobilityModule.createWithStandardResourceCost()
                                          .movementSpeed( 0 )
                                          .movementCost( ImmutableMap.<LevelType, Double>of() )
                                          .levelingCost(
                                                  ImmutableMap.of( LevelType.GROUND, 1d, LevelType.SKY, 2d ) );
    createUnit( testUnitType( "Leveler", module ) );
    assertEquals( 0d, module.costForLevelingToLevel( LevelType.GROUND ) );
    assertEquals( 1d, module.costForLevelingToLevel( LevelType.SKY ) );
    assertEquals( 3d, module.costForLevelingToLevel( LevelType.SPACE ) );
}