package io.dropwizard.hibernate;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

import org.junit.Test;

import com.google.common.collect.ImmutableList;

public class ScanningHibernateBundleTest {

	@Test
	public void testFindEntityClassesFromDirectory() {
		//given
		String packageWithEntities = "com.codahale.dropwizard.hibernate.fake.entities.pckg";
		//when
		ImmutableList<Class<?>> findEntityClassesFromDirectory = ScanningHibernateBundle.findEntityClassesFromDirectory(packageWithEntities);
		
		//then
		assertFalse(findEntityClassesFromDirectory.isEmpty());
		assertEquals(4, findEntityClassesFromDirectory.size());
	}
	
}

package io.dropwizard.hibernate;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

import org.junit.Test;

import com.google.common.collect.ImmutableList;

public class ScanningHibernateBundleTest {

	@Test
	public void testFindEntityClassesFromDirectory() {
		//given
		String packageWithEntities = "io.dropwizard.hibernate.fake.entities.pckg";
		//when
		ImmutableList<Class<?>> findEntityClassesFromDirectory = ScanningHibernateBundle.findEntityClassesFromDirectory(packageWithEntities);
		
		//then
		assertFalse(findEntityClassesFromDirectory.isEmpty());
		assertEquals(4, findEntityClassesFromDirectory.size());
	}
	
}

Update ScanningHibernateBundleTest.java