### Question:
StaticResourcesAttribute extends AbstractPropertyAttribute { public List<Integer> getResourceIds(Context context) { List<Integer> resourceIds = Lists.newArrayList(); for (StaticResource resource : resources) { resourceIds.add(resource.getResourceId(context)); } return resourceIds; } StaticResourcesAttribute(String name, String value); List<Integer> getResourceIds(Context context); @Override boolean isTwoWayBinding(); @Override T accept(PropertyAttributeVisitor<T> visitor);  }### Answer:
@Test public void shouldGetResourceIds() { String name1 = "layoutX", type1 = "layout"; String name2 = "layoutY", type2 = "layout", package2 = "android"; StaticResourcesAttribute attribute = new StaticResourcesAttribute("name", resourcesValue(resourceValue(name1, type1), resourceValue(name2, type2, package2))); MockResourcesBuilder aContextOfResources = aContextOfResources().withDefaultPackage(); int expectedResourceId1 = aContextOfResources.declareResource(name1, type1); int expectedResourceId2 = aContextOfResources.declareResource(name2, type2, package2); List<Integer> expectedResourceIds = Lists.newArrayList(expectedResourceId1, expectedResourceId2); List<Integer> resourceIds = attribute.getResourceIds(aContextOfResources.build()); assertThat(resourceIds, equalTo(expectedResourceIds)); }