Util { public static String removeFirstAndLastChar(String text) { Preconditions.checkNotNull(text, "text can not be null"); int n = text.length(); return text.substring(1, n - 1); } private  Util(); static String removeFirstAndLastChar(String text); static String getFileName(String fullPath); static final char QUOTE; }
@Test public void testRemoveQuotes_expected() throws Exception { assertEquals("abc", removeFirstAndLastChar("\"abc\"")); }