AutonomicClusterManagementHeuristicService { protected ClusterAdministrationHeuristicAlgorithm getDummyClusterManagementHeuristc() { return getInstanceOfClass(ClusterManagementDummyAlgorithm.class); }  ClusterAdministrationHeuristicAlgorithm getAdministrationAlgorithm(); final static String CLUSTER_ADMINISTRATION_ALGORITHMS_IN_CONFIGURATION_KEY; }
@Test public void getDummyClusterManagementHeuristcTest() { ClusterAdministrationHeuristicAlgorithm result = spy.getDummyClusterManagementHeuristc(); Assert.assertEquals(ClusterManagementDummyAlgorithm.class, result.getClass()); Mockito.verify(spy).getInstanceOfClass(Mockito.eq(ClusterManagementDummyAlgorithm.class)); }