Browser implements InternalModelTransformer, Serializable { @Override public InternalModelObject transformToInternalModel() throws WorldpayModelTransformationException { com.worldpay.internal.model.Browser intBrowser = new com.worldpay.internal.model.Browser(); intBrowser.setAcceptHeader(acceptHeader); intBrowser.setUserAgentHeader(userAgentHeader); intBrowser.setDeviceType(deviceType); intBrowser.setDeviceOS(deviceOS); intBrowser.setHttpAcceptLanguage(httpAcceptLanguage); intBrowser.setHttpReferer(httpReferer); return intBrowser; } Browser(String acceptHeader, String userAgentHeader, String deviceType, final String deviceOs, final String httpAcceptLanguage, final String httpReferer);  Browser(String acceptHeader, String userAgentHeader, String deviceType); @Override InternalModelObject transformToInternalModel(); String getAcceptHeader(); void setAcceptHeader(String acceptHeader); String getUserAgentHeader(); void setUserAgentHeader(String userAgentHeader); String getDeviceType(); void setDeviceType(String deviceType); String getDeviceOS(); void setDeviceOS(String deviceOS); String getHttpAcceptLanguage(); void setHttpAcceptLanguage(String httpAcceptLanguage); String getHttpReferer(); void setHttpReferer(String httpReferer); @Override String toString();  }
@Test public void shouldReturnAnInternalBrowser() throws WorldpayModelTransformationException { final Browser testObj = new Browser(null, null, null, null, null, null); final com.worldpay.internal.model.Browser result = (com.worldpay.internal.model.Browser) testObj.transformToInternalModel(); assertTrue(result instanceof com.worldpay.internal.model.Browser); }