### Question:
BindingUtils { public static String getPackageName(final String className) { int p = className.lastIndexOf('.'); return (p != -1 ? className.substring(0, p) : ""); } private  BindingUtils(); static boolean sameObject(final Object obj1, final Object obj2); static String getPackageName(final String className); static String getPackageName(final Class clazz); static List<String> parseNameList(final Map<String,String> options, 
			final String paramName); static int getHexDigitValue(int c);  }### Answer:
@Test public void testGetPackageName() { String fq = "org.ebayopensource.turmeric.runtime.SampleObject"; Assert.assertThat(BindingUtils.getPackageName(fq), is("org.ebayopensource.turmeric.runtime")); }
@Test public void tesGetPackgeNameFromClass() { Class<?> clazz = this.getClass(); String expectedPackageName = clazz.getPackage().getName(); Assert.assertThat(BindingUtils.getPackageName(clazz), is(expectedPackageName)); }