기본적인 AssertJ 사용법은 여기를 참고하면 된다.
각각의 키와 값을 넣어 체이닝(줄줄이 호출)한다.
Map<String, Object> map = new HashMap<>();
map.put("나이", 18);
map.put("이름", "jkh");
assertThat(map).containsEntry("나이", 18)
.containsEntry("이름", "jkh"); // 해당 두 키-값 쌍이 HashMap에 존재하므로 테스트 통과