@Test
public void testReplicationParam() {

  final ReplicationParam p = new ReplicationParam(ReplicationParam.DEFAULT);
  Assert.assertEquals(null, p.getValue());
  Assert.assertEquals(
      (short)conf.getInt(DFSConfigKeys.DFS_REPLICATION_KEY,
          DFSConfigKeys.DFS_REPLICATION_DEFAULT),
      p.getValue(conf));
  new ReplicationParam((short)1);
  try {
    new ReplicationParam((short)0);
    Assert.fail();
  } catch(IllegalArgumentException e) {
    LOG.info("EXPECTED: " + e);
  }
}