@Subscribe
	public void onScriptCallbackEvent(ScriptCallbackEvent event)
	{
		// ROE uncharge uses the same script as destroy
		if (!"destroyOnOpKey".equals(event.getEventName()))
		{
			return;
		}

		final int yesOption = client.getIntStack()[client.getIntStackSize() - 1];
		if (yesOption == 1)
		{
			checkDestroyWidget();
		}
	}
@Test
	public void testUncharge()
	{
		when(client.getIntStack()).thenReturn(new int[]{1, RING_OF_ENDURANCE});
		when(client.getIntStackSize()).thenReturn(1);
		when(client.getTickCount()).thenReturn(1);

		Widget enduranceWidget = mock(Widget.class);
		when(client.getWidget(ComponentID.DESTROY_ITEM_NAME)).thenReturn(enduranceWidget);
		when(enduranceWidget.getText()).thenReturn("Ring of endurance");

		ScriptCallbackEvent scriptCallbackEvent = new ScriptCallbackEvent();
		scriptCallbackEvent.setEventName("destroyOnOpKey");
		runEnergyPlugin.onScriptCallbackEvent(scriptCallbackEvent);

		verify(configManager).setRSProfileConfiguration(RunEnergyConfig.GROUP_NAME, "ringOfEnduranceCharges", 0);
	}