code: public Lookup viewLookup(final Lookup lookup) throws UnauthorizedException, GeneralException, NotFoundException {
          if (lookup.getPhoneNumber() == null) {
              throw new IllegalArgumentException("PhoneNumber must be specified.");
          }
          final Map<String, Object> params = new LinkedHashMap<String, Object>();
          if (lookup.getCountryCode() != null) {
              params.put("countryCode", lookup.getCountryCode());
          }
          return messageBirdService.requestByID(LOOKUPPATH, String.valueOf(lookup.getPhoneNumber()), params, Lookup.class);
      }
docs: Send a Lookup request
  
  @param lookup including with country code, country prefix, phone number, type, formats, country code
  @return Lookup
  @throws UnauthorizedException if client is unauthorized
  @throws GeneralException      general exception
  @throws NotFoundException     if lookup not found