@Test
public void testFindForFieldOffset() {

  final JBBPNamedNumericFieldMap map = new JBBPNamedNumericFieldMap();
  final JBBPNumericField field1 = new JBBPFieldInt(new JBBPNamedFieldInfo("test.test", "test", 1), 123);
  final JBBPNumericField field2 = new JBBPFieldInt(new JBBPNamedFieldInfo("test.test2", "test2", 2222), 123);
  final JBBPNumericField field3 = new JBBPFieldByte(new JBBPNamedFieldInfo("test.test3", "test3", 3000), (byte) 123);
  map.putField(field1);
  map.putField(field2);
  map.putField(field3);
  assertSame(field1, map.findForFieldOffset(1));
  assertSame(field2, map.findForFieldOffset(2222));
  assertSame(field3, map.findForFieldOffset(3000));
  assertNull(map.findForFieldOffset(123));
}