@Test
public void testDfsckAfterFailover() throws Exception {
ByteArrayOutputStream os = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(os);
new AvatarDFSck(conf, ps).run(new String[] { "/" });
String expected = os.toString("UTF8");
cluster.failOver();
ByteArrayOutputStream os1 = new ByteArrayOutputStream();
PrintStream ps1 = new PrintStream(os1);
new AvatarDFSck(conf, ps1).run(new String[] { "/" });
String actual = os1.toString("UTF8");
assertEquals(expected, actual);
}