@Test
public void should_extract_from_class()
{
// given
MetadataExtractor extractor = new TypeMetadataExtractor();
// when
RepositoryEntity result = extractor.extract(SimpleRepository.class);
// then
assertNotNull(result);
assertEquals(Simple.class, result.getEntityClass());
assertEquals(Long.class, result.getPrimaryClass());