제너릭 메소드, hamcrest matcher test, localhost ip address 추출