### Question:
ShapeStateAttributesFactory { public static ShapeStateAttributes buildFillAttributes(final ShapeState state) { final String COLOR = getAttributeColorByState(state); if (null == COLOR) { return buildAttributes(); } return buildAttributes() .set(ShapeStateAttribute.FILL_COLOR, COLOR) .set(ShapeStateAttribute.FILL_ALPHA, 1d); }  static ShapeStateAttributes buildStrokeAttributes(final ShapeState state); static ShapeStateAttributes buildFillAttributes(final ShapeState state);  }### Answer:
@Test public void testBuildFillAttributes() { ShapeStateAttributeHandler.ShapeStateAttributes attributes = fillAttributes.apply(NONE); attributes.getValues().values().forEach( state -> assertEquals(null, state) ); assertFillAttributes(fillAttributes.apply(SELECTED), COLOR_SELECTED); assertFillAttributes(fillAttributes.apply(INVALID), COLOR_INVALID); assertFillAttributes(fillAttributes.apply(HIGHLIGHT), COLOR_HIGHLIGHT); }