@Test
public final void testWrongDataClassDecoding() {

    OpenLR wpPaperLineLocation = Utils.readLocationFromFile(
            "whitePointAlongLocation.xml", true);
    try {
        new LineDecoder().decodeData("", wpPaperLineLocation);
        fail("Exception expected!");
    } catch (PhysicalFormatException e) {
        assertSame(e.getErrorCode(), XMLErrorType.DATA_ERROR);
    }
}