public void should_notify_on_state_change() throws Exception {
RestMcuBoardSettings boardSettings = new RestMcuBoardSettings();
boardSettings.setNotifyUrl("http://" + NetworkUtils.getFirstNonWifiIp() + ":5879/");
restmcu.getBoardResource().setBoardSettings(boardSettings);
RestMcuLineResource lineResource = restmcu.getLineResource();
RestMcuLineSettings settings = new RestMcuLineSettings();
settings.setNotifies(Arrays.asList(new RestMcuLineNotify(RestMcuLineNotifyCondition.SUP_OR_EQUAL, 1f)));
lineResource.setLineSettings(54, settings);
lineResource.setLineValue(9, 0f);
lineResource.setLineValue(9, 1f);
RestMcuLineNotification restMcuLineNotification = notifyResource.awaitLine().get(0);
assertEquals(54, restMcuLineNotification.getLineId());
assertEquals(new RestMcuLineNotify(RestMcuLineNotifyCondition.SUP_OR_EQUAL, 1f),
restMcuLineNotification.getNotify());