@Test
public void testMC_Locality() throws Exception {

    // make 2 store files
    putData(table, "a".getBytes());
    admin.flush(tableName);
    putData(table, "b".getBytes());
    admin.flush(tableName);
    Thread.sleep(3000);
    // run MC
    String[] argsParam = {"zookeeper", tableName, "--locality=100", "--force-proceed"};
    Args args = new ManagerArgs(argsParam);
    MC command = new MC(admin, args);
    try {
        command.run();
        fail();
    } catch (IllegalStateException e) {
        if (!e.getMessage().contains("Option locality is not supported in this HBase version"))
            throw e;
    }
}