@Autowired
private MemberService memberService;
@Test
public void duplicateKey() {
Member member = new Member();
member.setId("duplicateId");
member.setName("foo bar");
member.setEmail("info@bar.com");
memberService.create(member);
thrown.expect(DuplicateKeyException.class);
memberService.create(member);