first draft with spring integration testing