@Test
public void should_throw_exception_when_no_definition_found_by_class() {

	//given
	final DoubleSearch search = new DoubleSearch(emptyList());
	exception.expect(IllegalStateException.class);
	exception.expectMessage(Matchers.allOf(
			startsWith(MISSING_DOUBLE_EXCEPTION_PREFIX),
			endsWith(NO_DEFINITION_FOUND_EXCEPTION_MESSAGE)));
	//when
	search.findOneDefinition(Service.class);
}