@POST
    @Path("{nodeId}/reset")
    @ApiOperation("Reset a removed node to rejoin the cluster")
    @AuditEvent(type = DATANODE_RESET)
    @RequiresPermissions(RestPermissions.DATANODE_RESET)
    public DataNodeDto resetNode(@ApiParam(name = "nodeId", required = true) @PathParam("nodeId") String nodeId) {
        try {
            return dataNodeCommandService.resetNode(nodeId);
        } catch (NodeNotFoundException e) {
            throw new NotFoundException("Node " + nodeId + " not found");
        }
    }
@Test
    public void verifyResetServiceCalled() throws NodeNotFoundException {
        classUnderTest.resetNode(NODEID);
        verify(dataNodeCommandService).resetNode(NODEID);
    }