@Ignore
@Test(expected = AmbariException.class)
public void testCheckDBVersionInvalid() throws Exception {

  MetainfoDAO metainfoDAO =  createMock(MetainfoDAO.class);
  MetainfoEntity metainfoEntity = new MetainfoEntity();
  metainfoEntity.setMetainfoName(Configuration.SERVER_VERSION_KEY);
  metainfoEntity.setMetainfoValue("0.0.0"); // Incompatible version
  expect(metainfoDAO.findByKey(Configuration.SERVER_VERSION_KEY)).
    andReturn(metainfoEntity);
  replay(metainfoDAO);
  DatabaseChecker.metainfoDAO = metainfoDAO;
  DatabaseChecker.ambariMetaInfo = ambariMetaInfo;
  DatabaseChecker.checkDBVersion();
}