// Path: src/main/java/com/j256/simplemagic/entries/MagicMatcher.java
// public static class MutableOffset {
// 	public int offset;
// 
// 	public MutableOffset(int offset) {
// 		this.offset = offset;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return Integer.toString(offset);
// 	}
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import com.j256.simplemagic.entries.MagicMatcher.MutableOffset;
		assertEquals(str, type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
		bytes = new byte[] { ' ', 'e', 'l', 'l', 'o', '2' };
		assertNull(type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
	}

	@Test
	public void testSubLineMatch() {
		SearchType type = new SearchType();
		String str = "hello";
		Object info = type.convertTestString("search/7", str);
		byte[] bytes = new byte[] { '1', '2', 'h', 'e', 'l', 'l', 'o', '2', '4' };
		assertEquals(str, type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
		bytes = new byte[] { ' ', 'e', 'l', 'l', 'o', '2' };
		assertNull(type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
	}

	@Test
	public void testSubLineOffsetInfoMatch() {
		SearchType type = new SearchType();
		String str = "hello";
		Object info = type.convertTestString("search/7", str);
		byte[] bytes = new byte[] { '1', '2', 'h', 'e', 'l', 'l', 'o', '2', '4' };
		assertEquals(str, type.isMatch(info, null, false, null, new MutableOffset(2), bytes));
		bytes = new byte[] { ' ', 'e', 'l', 'l', 'o', '2' };
		assertNull(type.isMatch(info, null, false, null, new MutableOffset(2), bytes));
	}

	@Test
	public void testNoMatch() {
		SearchType type = new SearchType();
// Path: src/main/java/com/j256/simplemagic/entries/MagicMatcher.java
// public static class MutableOffset {
// 	public int offset;
// 
// 	public MutableOffset(int offset) {
// 		this.offset = offset;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return Integer.toString(offset);
// 	}
// }


// Path: src/test/java/com/j256/simplemagic/types/SearchTypeTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import com.j256.simplemagic.entries.MagicMatcher.MutableOffset;

		assertEquals(str, type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
		bytes = new byte[] { ' ', 'e', 'l', 'l', 'o', '2' };
		assertNull(type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
	}

	@Test
	public void testSubLineMatch() {
		SearchType type = new SearchType();
		String str = "hello";
		Object info = type.convertTestString("search/7", str);
		byte[] bytes = new byte[] { '1', '2', 'h', 'e', 'l', 'l', 'o', '2', '4' };
		assertEquals(str, type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
		bytes = new byte[] { ' ', 'e', 'l', 'l', 'o', '2' };
		assertNull(type.isMatch(info, null, false, null, new MutableOffset(0), bytes));
	}

	@Test
	public void testSubLineOffsetInfoMatch() {
		SearchType type = new SearchType();
		String str = "hello";
		Object info = type.convertTestString("search/7", str);
		byte[] bytes = new byte[] { '1', '2', 'h', 'e', 'l', 'l', 'o', '2', '4' };
		assertEquals(str, type.isMatch(info, null, false, null, new MutableOffset(2), bytes));
		bytes = new byte[] { ' ', 'e', 'l', 'l', 'o', '2' };
		assertNull(type.isMatch(info, null, false, null, new MutableOffset(2), bytes));
	}

	@Test
	public void testNoMatch() {
		SearchType type = new SearchType();
		String str = "hello";