### Question:
AbstractMockedAdapter extends AbstractAdapter<A, C> implements MockedAdapter<C> { protected String getPathToMockResultFile(String wantedTrafficLight) { return "/adapter/mockdata/" + createAdapterId() + "/v" + getAdapterVersion() + "/" + wantedTrafficLight + "." + getMockDataFileEnding(); }  @Override int getAdapterVersion(); final String execute(C config, AdapterRuntimeContext runtimeContext); String getAdapterId();  }### Answer:
@Test public void with_default_fileending_path_is_like_expected_for_given_value_with_xml_ending() { assertEquals("/adapter/mockdata/TestAbstractMockedAdapter/v10/valueX.xml",testAdapter.getPathToMockResultFile("valueX")); }
@Test public void with_custom_fileending_path_is_like_expected_for_given_value_with_custom_ending() { testAdapter.fileEnding="something"; assertEquals("/adapter/mockdata/TestAbstractMockedAdapter/v10/valueY.something",testAdapter.getPathToMockResultFile("valueY")); }