@Test
public void test2NNRegistration()
throws IOException, ConfigException, InterruptedException{
MiniAvatarCluster cluster = new MiniAvatarCluster(conf, 1, true, null, null, 2, true);
try {
NameNodeInfo nn1 = cluster.getNameNode(0);
NameNodeInfo nn2 = cluster.getNameNode(1);
AvatarNode nn1zero = nn1.avatars.get(0).avatar;
AvatarNode nn1one = nn1.avatars.get(1).avatar;
AvatarNode nn2zero = nn2.avatars.get(0).avatar;
AvatarNode nn2one = nn2.avatars.get(1).avatar;
assertNotNull("cannot create nn1 avatar 0", nn1zero);