em.persist(node);
em.flush();
assertEquals("The cluster status should be DOWN", StorageNode.Status.DOWN, node.getStatus());
// we need to do this to obtain the new id
StorageNodeCriteria criteria = new StorageNodeCriteria();
criteria.addFilterAddress(address);
StorageNode node2 = nodeManager.findStorageNodeByAddress(address);
nodeManager.ackFailedOperation(subjectManager.getOverlord(), node2.getId());
criteria = new StorageNodeCriteria();
criteria.addFilterAddress(address);
StorageNode node3 = nodeManager.findStorageNodeByAddress(address);
assertEquals("The error message should not affect the equals method", node, node2);
assertEquals("The error message should not affect the equals method", node2, node3);
assertEquals("The cluster status should be JOINING", StorageNode.Status.JOINING, node3.getStatus());