ContinuumModel implements ExtensionModel { public void setValuesFromMap( Map<String, String> values ) { String value = values.get( "projectId" ); this.projectId = value != null ? Integer.valueOf( value ) : null; }  String getId(); int getProjectId(); void setProjectId( int projectId ); Map<String, String> getValuesAsMap(); void setValuesFromMap( Map<String, String> values ); List<String> getKeys();  }
@Test(expectedExceptions=NumberFormatException.class) public void testSetMapNonIntegerValue() { Map<String, String> values = Collections.singletonMap( "projectId", "foo" ); model.setValuesFromMap( values ); }