final int NUM_MASTERS = 3;
final int NUM_RS = 3;
// Start the cluster
WaspTestingUtility TEST_UTIL = new WaspTestingUtility(conf);
TEST_UTIL.startMiniCluster(NUM_MASTERS, NUM_RS);
MiniWaspCluster cluster = TEST_UTIL.getWaspCluster();
// get all the master threads
List<MasterThread> masterThreads = cluster.getMasterThreads();