@Test
public void should_throw_exception_when_declared_class_missing_and_field_is_missing() {

	final AnnotationDetails detailsWithoutClass = annotationDetails();
	final Class<?> NO_FIELD_TYPE = null;
	try {
		classResolver.resolveDoubleClass(detailsWithoutClass, NO_FIELD_TYPE);
		fail("Should fail");
	} catch (IllegalArgumentException ex) {
		assertEquals(
				"Can not resolve double class",
				ex.getMessage());
	}
}