PlcInvalidFieldException extends PlcRuntimeException { public String getFieldToBeParsed() { return fieldToBeParsed; } PlcInvalidFieldException(String fieldToBeParsed);  PlcInvalidFieldException(String fieldToBeParsed, Pattern pattern);  PlcInvalidFieldException(String fieldToBeParsed, Pattern pattern, String readablePattern); String getFieldToBeParsed();  }
@Test public void getFieldToBeParsed() { PlcInvalidFieldException ex = new PlcInvalidFieldException("Pattern"); assertThat(ex.getFieldToBeParsed(), equalTo("Pattern")); }