@Test
public void should_create_mock_with_configuration() {

	//given
	final DoubleDefinition doubleDefinition = DoubleDefinition.builder()
			.name("mock")
			.doubleClass(Object.class)
			.doubleConfiguration(MockitoDoubleConfiguration.builder()
					.stubOnly(true)
					.verboseLogging(true)
					.serializableMode(SerializableMode.ACROSS_CLASSLOADERS)
					.answer(NoAnswer.class)
					.extraInterfaces(new Class[]{Closeable.class})
					.invocationListeners(new Class[]{DoNothingInvocationListener.class})
					.build())
			.build();
	//when
	doubleFactory.createMock(doubleDefinition);
	//then
	Mockito
			.verify(mockSettings)
			.stubOnly();
	Mockito
			.verify(mockSettings)
			.verboseLogging();
	Mockito
			.verify(mockSettings)
			.serializable(SerializableMode.ACROSS_CLASSLOADERS);
	Mockito
			.verify(mockSettings)
			.defaultAnswer(argThat(hasAnswerOfType(NoAnswer.class)));
	Mockito
			.verify(mockSettings)
			.extraInterfaces(argThat(new PresentInAnyOrder(AopInfrastructureBean.class, Closeable.class)));
	Mockito
			.verify(mockSettings)
			.invocationListeners(argThat(hasInstancesOf(DoNothingInvocationListener.class)));
}