Test: Extract a method that creates new entity for test