@Ignore
@Test
public void testCheckDBVersion_Valid() throws Exception {

  MetainfoDAO metainfoDAO =  createMock(MetainfoDAO.class);
  MetainfoEntity metainfoEntity = new MetainfoEntity();
  String serverVersion = ambariMetaInfo.getServerVersion();
  metainfoEntity.setMetainfoName(Configuration.SERVER_VERSION_KEY);
  metainfoEntity.setMetainfoValue(serverVersion);
  expect(metainfoDAO.findByKey(Configuration.SERVER_VERSION_KEY)).
    andReturn(metainfoEntity);
  replay(metainfoDAO);
  DatabaseChecker.metainfoDAO = metainfoDAO;
  DatabaseChecker.ambariMetaInfo = ambariMetaInfo;
  try {
    DatabaseChecker.checkDBVersion();
  } catch (AmbariException ae) {
    fail("DB versions check failed.");
  }
}