@@ -0,0 +1,1811 @@
+package br.com.fsp.wine;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.web.WebAppConfiguration;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.ResultActions;%0Aimport org.springframework.test.web.servlet.setup.MockMvcBuilders;%0A%0Aimport br.com.fsp.wine.controller.VinhosController;%0Aimport br.com.fsp.wine.model.Vinho;%0Aimport br.com.fsp.wine.service.VinhoService;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = WineApplication.class)%0A@WebAppConfiguration%0Apublic class VinhoServiceTests %7B%0A%0A%09@InjectMocks%0A%09private VinhosController vinhosController;%0A%09%0A%09@Mock%0A%09private VinhoService vinhoService;%0A%09%0A%09private MockMvc mockMvc;%0A%09%0A%09private ResultActions resultActions;%0A%09%0A%09private List%3CVinho%3E vinhosCadastrados;%0A%09private Long codigo;%0A%09private Vinho vinho;%0A%09%0A%09@Before%0A%09public void setup()%7B%0A%09%09MockitoAnnotations.initMocks(this);%0A%09%09this.mockMvc = MockMvcBuilders.standaloneSetup(vinhosController).build();%0A%09%09vinhosCadastrados = new ArrayList%3CVinho%3E();%0A%09%09codigo = new Long(1);%0A%09%09vinho = new Vinho();%0A%09%09vinho.setCodigo(codigo);%0A%09%7D%0A%09%0A%09@Test%0A%09public void quandoBuscarTodosDeveRetornarListaDeVinhos() throws Throwable%7B%0A%09%09Mockito.when(vinhoService.buscarTodos()).thenReturn(vinhosCadastrados);%0A%09%7D%0A%09%0A%09@Test%0A%09public void quandoBuscarPorCodigoDeveRetornarVinho() throws Throwable%7B%0A%09%09Mockito.when(vinhoService.buscarPorCodigo(codigo)).thenReturn(vinho);%0A%09%7D%0A%0A%7D%0A

fix #50, Criamos os teste para VinhoService.