@Test
public void getMasterHostTest() throws Exception {

    Pool pool = Mockito.mock(Pool.class);
    pool.getMaster(Mockito.any(Connection.class));
    Set<Pool> setOfPools = new HashSet<Pool>();
    setOfPools.add(pool);
    PowerMockito.mockStatic(Pool.class);
    PowerMockito.doReturn(setOfPools).when(Pool.class, "getAll", conn);
    xenHypervisor.getMasterHost(conn);
}