### Question:
AttributeCompressionStrategy implements BlobStrategy { public static Collection<Field> getAllValidFields(Class c) { List<Field> r = new ArrayList<Field>(); for (Field f : c.getDeclaredFields()) { int modifiers = f.getModifiers(); if (Modifier.isStatic(modifiers)) continue; if (Modifier.isVolatile(modifiers)) continue; if (Modifier.isTransient(modifiers)) continue; r.add(f); } return r; } @Inject  AttributeCompressionStrategy(TokenBlobUtils blobUtils); byte[] perform(byte[] blob); byte[] reverse(byte[] blob); static String getInitials(String name); static Collection<Field> getAllValidFields(Class c);  }### Answer:
@Test public void shouldNotSelectAStaticFieldFromClass() { assertEquals(0, AttributeCompressionStrategy.getAllValidFields(StaticFieldTest.class).size()); }
@Test public void shouldSelectPrivateFields() { assertEquals(1, AttributeCompressionStrategy.getAllValidFields(PrivateFieldTest.class).size()); }