@Test
void setEnabled() {

    initNodes();
    final String subPath = ResourcePaths.buildPath(NodeResource.ENABLED_PATH_PART, "node2");
    doPutTest(
            subPath,
            Boolean.FALSE);
    Node newNode = new Node();
    newNode.setName("node2");
    newNode.setEnabled(false);
    // We are hitting node1 but setting node2
    verify(nodeServiceMap.get("node1"), Mockito.times(1))
            .update(Mockito.eq(newNode));
}