test_class.declarator: controller = new BeerController(new RestTemplate())
test_class.original_string: BeerController controller = new BeerController(new RestTemplate());
test_class.type: BeerController
test_class.var_name: controller
test_class.declarator: mockProvider =
  			new PactProviderRuleMk2("beer-api-producer-pact", "localhost", 8083, this)
test_class.modifier: @Rule
  	public
test_class.original_string: @Rule
  	public PactProviderRuleMk2 mockProvider =
  			new PactProviderRuleMk2("beer-api-producer-pact", "localhost", 8083, this);
test_class.type: PactProviderRuleMk2
test_class.var_name: mockProvider
test_class.file: consumer_pact/src/test/java/com/example/BeerControllerTest.java
test_class.identifier: BeerControllerTest
test_case.body: @Test
  	@PactVerification
  	public void runTestBeer() {
  		// OK
  		assertEquals(this.controller.gimmeABeer(new Person("marcin", 25)), "THERE YOU GO");
  
  		// NOT_OK
  		assertEquals(this.controller.gimmeABeer(new Person("marcin", 10)), "GET LOST");
  	}
test_case.class_method_signature: BeerControllerTest.runTestBeer()
test_case.full_signature: @Test @PactVerification public void runTestBeer()
test_case.identifier: runTestBeer
test_case.invocations: assertEquals gimmeABeer assertEquals gimmeABeer
test_case.modifiers: @Test @PactVerification public
test_case.parameters: ()
test_case.return: void
test_case.signature: void runTestBeer()
focal_class.declarator: restTemplate
focal_class.modifier: private final
focal_class.original_string: private final RestTemplate restTemplate;
focal_class.type: RestTemplate
focal_class.var_name: restTemplate
focal_class.declarator: port = 8083
focal_class.original_string: int port = 8083;
focal_class.type: int
focal_class.var_name: port
focal_class.file: consumer_pact/src/main/java/com/example/BeerController.java
focal_class.identifier: BeerController
focal_class.class_method_signature: BeerController.BeerController(RestTemplate restTemplate)
focal_class.full_signature:   BeerController(RestTemplate restTemplate)
focal_class.identifier: BeerController
focal_class.parameters: (RestTemplate restTemplate)
focal_class.signature:  BeerController(RestTemplate restTemplate)
focal_class.class_method_signature: BeerController.gimmeABeer(@RequestBody Person person)
focal_class.full_signature: @RequestMapping(method = RequestMethod.POST, value = "/beer", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public String gimmeABeer(@RequestBody Person person)
focal_class.identifier: gimmeABeer
focal_class.modifiers: @RequestMapping(method = RequestMethod.POST, value = "/beer", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public
focal_class.parameters: (@RequestBody Person person)
focal_class.return: String
focal_class.signature: String gimmeABeer(@RequestBody Person person)
focal_method.body: @RequestMapping(method = RequestMethod.POST,
  			value = "/beer",
  			consumes = MediaType.APPLICATION_JSON_UTF8_VALUE,
  			produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  	public String gimmeABeer(@RequestBody Person person) {
  		ResponseEntity<Response> response = this.restTemplate.exchange(
  				RequestEntity
  						.post(URI.create("http://localhost:" + this.port + "/check"))
  						.contentType(MediaType.APPLICATION_JSON_UTF8)
  						.body(person),
  				Response.class);
  		switch (response.getBody().status) {
  		case OK:
  			return "THERE YOU GO";
  		default:
  			return "GET LOST";
  		}
  	}
focal_method.class_method_signature: BeerController.gimmeABeer(@RequestBody Person person)
focal_method.full_signature: @RequestMapping(method = RequestMethod.POST, value = "/beer", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public String gimmeABeer(@RequestBody Person person)
focal_method.identifier: gimmeABeer
focal_method.invocations: exchange body contentType post create getBody
focal_method.modifiers: @RequestMapping(method = RequestMethod.POST, value = "/beer", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public
focal_method.parameters: (@RequestBody Person person)
focal_method.return: String
focal_method.signature: String gimmeABeer(@RequestBody Person person)