@Test
	public void testHexViewMaskFormat() {

		setToggleButtonSelected(component, "Hex View Button", true);

		// Wait for the button select to finish; the select fires an event that causes
		// the preview panel to change to hex.
		dialog.waitForCurrentTask();

		// Get the instruction table and grab a cell that we want to mask.  Use the
		// DataObject to mask it directly, then view the results.
		InstructionTableDataObject cell21 =
			(InstructionTableDataObject) instructionTable.getModel().getValueAt(2, 1);
		cell21.setState(OperandState.MASKED, true);

		// Wait for the cell select to finish; the select fires an event that causes
		// the preview panel to update, so we need to be patient.
		dialog.waitForCurrentTask();

		// And finally make sure the preview panel has been updated with the correct
		// hex/binary hybrid string.
		cell21 = (InstructionTableDataObject) previewTable.getModel().getValueAt(2, 0);
		assertEquals(cell21.getData().trim(), "8d [01...101] 08");
	}
Tests that the hex view correctly formats the preview panel when masking a part
of a byte.

ie: [01010...]
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/instructionsearch/InstructionSearchTest.java