@Test
public void testChooseRandomWithStorageTypeWithExcludedforNullCheck()
    throws Exception {

  HashSet<Node> excluded = new HashSet<>();
  excluded.add(new DatanodeInfoBuilder()
      .setNodeID(DatanodeID.EMPTY_DATANODE_ID).build());
  Node node = CLUSTER.chooseRandomWithStorageType("/", "/l1/d1/r1", excluded,
      StorageType.ARCHIVE);
  assertNotNull(node);
}