}
@Test
public void testPerform() throws Exception {
ConfigurationMergeCheck cmc = new ConfigurationMergeCheck();
final RepositoryVersionDAO repositoryVersionDAO = EasyMock.createMock(RepositoryVersionDAO.class);
<BUG>expect(repositoryVersionDAO.findByVersion("1.0")).andReturn(

Collections.singletonList(createFor("1.0"))).anyTimes();
expect(repositoryVersionDAO.findByVersion("1.1")).andReturn(

Collections.singletonList(createFor("1.1"))).anyTimes();</BUG>
replay(repositoryVersionDAO);

}
@Test
public void testApplicable() throws Exception {
PrereqCheckRequest request = new PrereqCheckRequest("cluster");
ConfigurationMergeCheck cmc = new ConfigurationMergeCheck();
Assert.assertFalse(cmc.isApplicable(request));
final RepositoryVersionDAO repositoryVersionDAO = EasyMock.createMock(RepositoryVersionDAO.class);
expect(repositoryVersionDAO.findMaxByVersion("1.0")).andReturn(createFor("1.0")).anyTimes();
expect(repositoryVersionDAO.findMaxByVersion("1.1")).andReturn(createFor("1.1")).anyTimes();
expect(repositoryVersionDAO.findMaxByVersion("1.2")).andReturn(null).anyTimes();
replay(repositoryVersionDAO);
