Error Message expected: but was: Stacktrace java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:144) at org.optaplanner.examples.cloudbalancing.app.CloudBalancingDaemonTest.daemon(CloudBalancingDaemonTest.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:277) at java.lang.Thread.run(Thread.java:820) Standard Output 03:33:48.776 [limited test] INFO CloudBalance 4computers-12processes has 4 computers and 12 processes with a search space of 10^7. 03:33:48.777 [limited test] INFO ==== New testing stage (1) started. ==== 03:33:48.781 [Thread-11 ] INFO Solving started: time spent (4), best score (0hard/0soft), environment mode (REPRODUCIBLE), random (JDK with seed 0). 03:33:48.782 [Thread-11 ] INFO Skipped all phases (2): out of 0 planning entities, none are movable (non-pinned). 03:33:49.284 [Thread-11 ] INFO Real-time problem fact changes done: step total (8), new best score (-8init/0hard/0soft). 03:33:49.286 [Thread-11 ] INFO Solving restarted: time spent (2), best score (-8init/0hard/0soft), environment mode (REPRODUCIBLE), random (JDK with seed 0). 03:33:49.298 [Thread-11 ] INFO Construction Heuristic phase (0) ended: time spent (14), best score (0hard/-5460soft), score calculation speed (2750/sec), step total (8). 03:33:49.300 [limited test] INFO ==== New testing stage (2) started. ==== 03:33:50.302 [Thread-11 ] INFO Real-time problem fact changes done: step total (3), new best score (-3init/0hard/-5460soft). 03:33:50.304 [Thread-11 ] INFO Solving restarted: time spent (1), best score (-3init/0hard/-5460soft), environment mode (REPRODUCIBLE), random (JDK with seed 0). 03:33:50.309 [Thread-11 ] INFO Construction Heuristic phase (0) ended: time spent (6), best score (0hard/-7410soft), score calculation speed (2400/sec), step total (3). 03:33:50.323 [limited test] INFO ==== New testing stage (3) started. ==== 03:33:50.323 [limited test] INFO Terminating solver early. 03:33:50.325 [Thread-11 ] INFO Solving ended: time spent (7), best score (0hard/-7410soft), score calculation speed (1857/sec), phase total (2), environment mode (REPRODUCIBLE).