@Test
public void getInt_chainLogic() {

    toTest.providerChain.clear();
    //gleicher aufbau wie get_chainLogic()
    for (int i = 0; i < 3; i++) {
        toTest.providerChain.add(mock(ValueProvider.class));
        if (i != 2) {
            doReturn(i).when(toTest.providerChain.get(i)).getPropertyValueAsInt(any(Property.class));
        } else {
            doReturn(null).when(toTest.providerChain.get(i)).getPropertyValueAsInt(any(Property.class));
        }
    }
    assertTrue(1 == toTest.getPropertyValueAsInt(Property.MAP_PROVIDER_SCHEMA));
}