	@Test
	public void shouldNotResolveTopLevelObjectIfNotBackedWithObjectMessageSource() throws Exception {

		MessageSourceMap map = new TestMessageSourceMap(new StaticMessageSource());
		ObjectResolvable resolvable = new ObjectResolvable();
		this.thrown.expect(IllegalArgumentException.class);
		this.thrown.expectMessage("Unable to resolve " + ObjectResolvable.class.getName()
				+ " messages when not using an ObjectMessageSource.");
		map.get(resolvable);
	}