### Question:
PersistorGeneratorImmutables extends PersistorGeneratorAbstract { @Override public <BEAN> boolean applicableFor(Class<BEAN> beanClass) { final boolean hasDefaultConstructor = ReflectionUtils.getDefaultConstructor(beanClass).isPresent(); return !hasDefaultConstructor && getBuilderMethod(beanClass).isPresent(); }  @Override boolean applicableFor(Class<BEAN> beanClass);  }### Answer:
@Test public void should_be_applicable_for_immutables() { assertTrue(immutablesGenerator.applicableFor(ImmutableFoobarValue.class)); }
@Test public void should_not_be_applicable_for_beans() { assertFalse(immutablesGenerator.applicableFor(Employee.class)); }