@Test
	public void testSetNonNullableOptionToNull() {
		//
		// Some options cannot be null.  Verify that is the ca.
		//

		Options options = loadSearchOptions();

		HelpLocation help = null;
		int defaultValue = 1;
		String optionName = "Foo Int";
		options.registerOption(optionName, defaultValue, help, "Description");

		int optionValue = options.getInt(optionName, -1);
		assertEquals(defaultValue, optionValue);

		try {
			options.putObject(optionName, null);
			fail("Did not get expected exception");
		}
		catch (IllegalArgumentException e) {
			// expected
		}

		int newValue = 2;
		options.putObject(optionName, newValue);
		optionValue = options.getInt(optionName, -1);
		assertEquals(newValue, optionValue);
	}
This test differs from {@link OptionsTest} in that this test is an integration test, pulling
options that have been registered by plugins.
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/options/ToolPluginOptionsTest.java