@Test(expected = IllegalArgumentException.class)
public void testExceptionForNullResourceDirectory() throws Exception {

	try {
		AbstractDefineResourcesMojo.findOrCreateResource(resources, null);
		fail("Resources directory cannot be null. Must throw an exception.");
	} catch (IllegalArgumentException exception) {
		// Funcionou corretamente
	}
}