### Question:
ResponseBuilder { public static ResponseEntity build(Object object, int httpCode) { ObjectMapper mapper = new ObjectMapper(); Map<String, Object> map = new HashMap<>(); if (object != null) { if (!(object instanceof Map)) { Map<String, Object> wrapper = new HashMap<>(); wrapper.put("result", object); object = wrapper; } map = mapper.convertValue(object, Map.class); } return ResponseEntity.status(httpCode).body(map); } private  ResponseBuilder(); static ResponseEntity build(Object object, int httpCode); static ResponseEntity buildError(Exception exception);  }### Answer:
@Test public void build() { ResponseEntity res = ResponseBuilder.build(new Object(), 100); assertNotNull(res); }