### Question:
MockitoDoubleConfigurationParser implements DoubleConfigurationParser<MockitoDoubleConfiguration, MockitoDouble> { @Override public MockitoDoubleConfiguration parseMockConfiguration(String doubleName, MockitoDouble configuration) { final MockitoDoubleConfigurationBuilder builder = MockitoDoubleConfiguration.builder(); if (configuration != null) { builder .answer(configuration.defaultAnswer()) .resetMode(configuration.resetMode()) .extraInterfaces(configuration.extraInterfaces()) .serializableMode(configuration.serializableMode()) .verboseLogging(configuration.verbose()) .stubOnly(configuration.stub()) .invocationListeners(configuration.invocationListeners()); } return builder .name(doubleName) .build(); }  @Override MockitoDoubleConfiguration parseMockConfiguration(String doubleName, MockitoDouble configuration); @Override MockitoDoubleConfiguration parseSpyConfiguration(String doubleName, MockitoDouble configuration);  }### Answer:
@Test public void should_leave_default_answer_unmodified_for_mock_when_not_configured() { final MockitoDoubleConfiguration configuration = configurationParser.parseMockConfiguration(ANY_NAME, AnyTest.mock()); configuration.createMockSettings(mockSettings); Mockito .verify(mockSettings, never()) .defaultAnswer(any()); }
@Test public void should_apply_mock_name_based_on_provided_argument() { final String mockName = ANY_NAME; final MockitoDoubleConfiguration configuration = configurationParser.parseMockConfiguration(mockName, AnyTest.mock()); configuration.createMockSettings(mockSettings); Mockito .verify(mockSettings) .name(mockName); }