BasePropertySource implements PropertySource { @Override public PropertyValue get(String key) { Map<String,PropertyValue> properties = getProperties(); PropertyValue val = properties.get(key); if(val==null){ return null; } return val; } protected  BasePropertySource(String name); protected  BasePropertySource(int defaultOrdinal); protected  BasePropertySource(String name, int defaultOrdinal); protected  BasePropertySource(); @Override String getName(); void setName(String name); void setOrdinal(Integer ordinal); void setDefaultOrdinal(Integer defaultOrdinal); int getOrdinal(); int getDefaultOrdinal(); @Override PropertyValue get(String key); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGet() { assertThat(new OverriddenOrdinalPropertySource().getOrdinal()).isEqualTo(1000); }