@Test
public void should_minify_input() throws IOException {

    String content = "function PbInputCtrl($scope, $log, widgetNameFactory) {\n" +"\n'use strict';\n" +
            "\n  this.name = widgetNameFactory.getName('pbInput');\n" +
            "\n  if (!$scope.properties.isBound('value')) {\n" +
            "    $log.error('the pbInput property named \"value\" need to be bound to a variable');\n" +
            "  }\n}\n";
    String expected = "\n" +
            "function PbInputCtrl($scope,$log,widgetNameFactory){'use strict';this.name=widgetNameFactory.getName" +
            "('pbInput');if(!$scope.properties.isBound('value')){$log.error('the pbInput property named \"value\"" +
            " need to be bound to a variable');}}";
    byte[] min = Minifier.minify(content.getBytes());
    assertThat(new String(min,"UTF-8")).isEqualTo(expected);
}