### Question:
GroupAttributesResolver { public ResolvedGroupAttributes resolve(PendingGroupAttributes pendingGroupAttributes, ChildAttributesResolver childAttributesResolver) { pendingGroupAttributes.assertAttributesArePresent(childAttributesResolver.getCompulsoryAttributes()); ChildAttributeResolverMappings resolverMappings = createResolverMappings(childAttributesResolver); Map<String, AbstractAttribute> resolvedChildAttributes = resolveChildAttributes(pendingGroupAttributes, resolverMappings); ResolvedGroupAttributes resolvedGroupAttributes = new ResolvedGroupAttributes(resolvedChildAttributes); childAttributesResolver.validateResolvedChildAttributes(resolvedGroupAttributes); return resolvedGroupAttributes; }  ResolvedGroupAttributes resolve(PendingGroupAttributes pendingGroupAttributes, ChildAttributesResolver childAttributesResolver);  }### Answer:
@Test public void givenAllCorrectParameters_thenReturnResolvedGroupAttributes() { PendingGroupAttributes pendingGroupAttributes = newPendingGroupAttributes(); GroupAttributesResolver factory = new GroupAttributesResolver(); ResolvedGroupAttributes resolvedGroupAttributes = factory.resolve(pendingGroupAttributes, new ChildAttributesResolverForTest()); assertTrue(resolvedGroupAttributes.hasAttribute(ATTRIBUTE_NAME)); }