Program: 91737
Project: 91737
Buggy source:
/** 
 * Tests decoding of various coordinates, all at the same resolution.
 * @throws TransformException if an error occurred while computing the coordinate.
 */
@Test @DependsOnMethod("String_Node_Str") public void testDecoding() throws TransformException {
  final MilitaryGridReferenceSystem.Coder coder=coder();
  DirectPosition position;
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(41,10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",584102,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",4539239,position.getOrdinate(1),STRICT);
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(82,-10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",484463,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",9104963,position.getOrdinate(1),STRICT);
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(-41,10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",584102,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",5460761,position.getOrdinate(1),STRICT);
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(82,10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",422407,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",9108183,position.getOrdinate(1),STRICT);
}

Fixed version (ground truth):
/** 
 * Tests decoding of various coordinates, all at the same resolution.
 * @throws TransformException if an error occurred while computing the coordinate.
 */
@Test @DependsOnMethod("String_Node_Str") public void testDecoding() throws TransformException {
  final MilitaryGridReferenceSystem.Coder coder=coder();
  DirectPosition position;
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(41,10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",584102,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",4539239,position.getOrdinate(1),STRICT);
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(82,-10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",484463,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",9104963,position.getOrdinate(1),STRICT);
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(-41,10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",584102,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",5460761,position.getOrdinate(1),STRICT);
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(82,10),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",422407,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",9108183,position.getOrdinate(1),STRICT);
  position=coder.decode("String_Node_Str");
  assertSame("String_Node_Str",CommonCRS.WGS84.universal(-49.4,10.3),position.getCoordinateReferenceSystem());
  assertEquals("String_Node_Str",593608,position.getOrdinate(0),STRICT);
  assertEquals("String_Node_Str",4526322,position.getOrdinate(1),STRICT);
}