@Test
public void testClone() throws Exception {

  OrderedIntDoubleMapping mapping = new OrderedIntDoubleMapping(1);
  mapping.set(0, 1.1);
  mapping.set(5, 6.6);
  OrderedIntDoubleMapping clone = mapping.clone();
  assertEquals(2, clone.getNumMappings());
  assertEquals(1.1, clone.get(0), EPSILON);
  assertEquals(0.0, clone.get(1), EPSILON);
  assertEquals(6.6, clone.get(5), EPSILON);
  assertEquals(0.0, clone.get(6), EPSILON);
}