renderTestRefsComponent = function() {
    const testRefsComponent = ReactTestUtils.renderIntoDocument(<TestRefsComponent />);
    expect(testRefsComponent instanceof TestRefsComponent).toBe(true);

    const generalContainer = testRefsComponent.refs.myContainer;
    expect(generalContainer instanceof GeneralContainerComponent).toBe(true);

    const counter = testRefsComponent.refs.myCounter;
    expect(counter instanceof ClickCounter).toBe(true);

    return testRefsComponent;
}
Render a TestRefsComponent and ensure that the main refs are wired up.