### Question:
ViewPort { public String getContent() { StringBuilder buffer = new StringBuilder(); if (initialScale > -1) { buffer.append("initial-scale=").append(numberToString(initialScale)); } if (minimumScale > -1) { buffer.append(",minimum-scale=").append(numberToString(minimumScale)); } if (maximumScale > -1) { buffer.append(",maximum-scale=").append(numberToString(maximumScale)); } if (width != null) { buffer.append(",width=").append(width); } if (height != null) { buffer.append(",height=").append(height); } if (!userScaleAble) { buffer.append(",user-scalable=no"); } if (targetDensity != null && SWMMobile.getOsDetection().isAndroid()) { buffer.append(",target-densityDpi=").append(targetDensity); } return buffer.toString(); }  ViewPort setWidth(int value); ViewPort setHeight(int value); ViewPort setWidthToDeviceWidth(); ViewPort setHeightToDeviceHeight(); ViewPort setTargetDensity(int value); ViewPort setTargetDensity(Density d); ViewPort setUserScaleAble(boolean userScaleAble); ViewPort setMinimumScale(double minimumScale); ViewPort setMaximumScale(double maximumScale); ViewPort setInitialScale(double initialScale); String getContent(); String numberToString(double number);  }### Answer:
@Test public void testGetContent() throws Exception { ViewPort toTest = new ViewPort(); toTest.setWidthToDeviceWidth(); toTest.setInitialScale(1); toTest.setMaximumScale(1); toTest.setUserScaleAble(false); assertEquals(EXPECTED, toTest.getContent()); }