question: private void buildGetStorageResponse ( MockCloseableHttpResponse response , URI uri ) throws JAXBException { Pattern pattern = Pattern . compile ( "/herd-app/rest/storages/(.*)" ) ; Matcher matcher = pattern . matcher ( uri . getPath ( ) ) ; if ( matcher . find ( ) ) { Storage storage = getNewStorage ( matcher . group ( 1 ) ) ; response . setEntity ( getHttpEntity ( storage ) ) ; } }
target:  Builds a Get Storage response.