	@Test
	public void givenResourceNameTypeAndPackage_thenGetResourceIdFromContextResources() {

		MockResourcesBuilder aContextOfResources = aContextOfResources();
		int expectedResourceId = aContextOfResources.declareResource(RESOURCE_NAME, RESOURCE_TYPE, RESOURCE_PACKAGE);

		StaticResource resource = new StaticResource(resourceValue(RESOURCE_NAME, RESOURCE_TYPE, RESOURCE_PACKAGE));

		assertThat(resource.getResourceId(aContextOfResources.build()), equalTo(expectedResourceId));
	}